/**
 * DiscordServery.com - WOW CSS
 */

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

:root {
    --primary: #8b5cf6;
    --primary-light: #a78bfa;
    --primary-dark: #7c3aed;
    --secondary: #06b6d4;
    --accent: #f472b6;
    --discord: #5865F2;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --bg-dark: #0a0a0f;
    --bg-darker: #050507;
    --bg-card: rgba(20, 20, 30, 0.8);
    --bg-card-hover: rgba(30, 30, 45, 0.9);
    --bg-input: rgba(15, 15, 25, 0.8);
    
    --text-white: #fafafa;
    --text-light: #d1d5db;
    --text-muted: #6b7280;
    
    --border: rgba(139, 92, 246, 0.15);
    --border-light: rgba(255, 255, 255, 0.08);
    --glow: rgba(139, 92, 246, 0.4);
    
    --radius: 16px;
    --radius-lg: 24px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: var(--primary-light); text-decoration: none; transition: all 0.3s; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; }
.container { max-width: 1300px; margin: 0 auto; padding: 0 24px; }

/* === ANIMATED BACKGROUND === */
.bg-animation {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.bg-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(139, 92, 246, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(6, 182, 212, 0.1), transparent),
        radial-gradient(ellipse 60% 40% at 0% 100%, rgba(244, 114, 182, 0.1), transparent);
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent);
}

.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: float 20s ease-in-out infinite;
}

.bg-glow-1 {
    width: 600px;
    height: 600px;
    background: rgba(139, 92, 246, 0.15);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.bg-glow-2 {
    width: 500px;
    height: 500px;
    background: rgba(6, 182, 212, 0.12);
    bottom: -150px;
    right: -150px;
    animation-delay: -7s;
}

.bg-glow-3 {
    width: 400px;
    height: 400px;
    background: rgba(244, 114, 182, 0.1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 30px) scale(1.02); }
}

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s;
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(10, 10, 15, 0.95);
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-white);
}

.logo:hover { color: var(--text-white); transform: scale(1.02); }

.logo-icon {
    font-size: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

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

.logo-text {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-white);
}

.nav-link:hover::before, .nav-link.active::before {
    opacity: 0.15;
}

.nav-link.active {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid var(--border);
}

.nav-icon { font-size: 1.1rem; position: relative; z-index: 1; }
.nav-link span:last-child { position: relative; z-index: 1; }

.nav-link-admin { color: var(--accent); }
.nav-link-admin.active { background: rgba(244, 114, 182, 0.2); border-color: rgba(244, 114, 182, 0.3); }

/* User Menu */
.nav-user { display: flex; align-items: center; gap: 16px; }

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 18px 6px 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    transition: all 0.3s;
}

.user-menu:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--glow);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
}

.user-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.user-name { font-weight: 600; font-size: 0.9rem; }
.btn-logout { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 600; margin-left: 8px; }
.btn-logout:hover { color: var(--danger); }

/* === DISCORD LOGIN BUTTON - MEGA WOW === */
.btn-discord-login {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 24px 12px 18px;
    background: linear-gradient(135deg, #5865F2 0%, #7289da 50%, #5865F2 100%);
    background-size: 200% 200%;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 15px rgba(88, 101, 242, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    animation: bgShift 3s ease infinite;
}

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

.btn-discord-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.btn-discord-login:hover .btn-discord-bg {
    transform: translateX(100%);
}

.btn-discord-login:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 30px rgba(88, 101, 242, 0.5),
        0 0 60px rgba(88, 101, 242, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.btn-discord-login .discord-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    position: relative;
    z-index: 1;
}

.btn-discord-text {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.btn-text-main { font-size: 0.95rem; line-height: 1.2; }
.btn-text-sub { font-size: 0.7rem; opacity: 0.8; font-weight: 400; }

.btn-discord-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% { left: -100%; }
    50%, 100% { left: 150%; }
}

.mobile-menu-toggle { display: none; }

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
    color: var(--text-white);
    border: 1px solid var(--border-light);
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn:hover::before { opacity: 1; }
.btn:hover { transform: translateY(-2px); color: var(--text-white); }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.5), 0 0 40px rgba(139, 92, 246, 0.2);
}

.btn-discord {
    background: linear-gradient(135deg, var(--discord), #7289da);
    border: none;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.btn-discord:hover {
    box-shadow: 0 6px 25px rgba(88, 101, 242, 0.5);
}

.btn-success { background: linear-gradient(135deg, var(--success), #059669); border: none; }
.btn-warning { background: linear-gradient(135deg, var(--warning), #d97706); border: none; color: #000; }
.btn-danger { background: linear-gradient(135deg, var(--danger), #dc2626); border: none; }
.btn-secondary { background: linear-gradient(135deg, var(--secondary), #0891b2); border: none; }

.btn-glow {
    animation: btnGlow 2s ease-in-out infinite;
}

@keyframes btnGlow {
    0%, 100% { box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3); }
    50% { box-shadow: 0 4px 30px rgba(139, 92, 246, 0.6), 0 0 60px rgba(139, 92, 246, 0.3); }
}

.btn-large { padding: 16px 32px; font-size: 1rem; }
.btn-small { padding: 8px 16px; font-size: 0.8rem; }
.btn-block { width: 100%; }
.btn-disabled { opacity: 0.5; cursor: not-allowed; }
.btn-disabled:hover { transform: none; }

/* === FLASH === */
.flash {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    animation: slideDown 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.flash-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--bg-card);
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.flash-success .flash-content { border-color: var(--success); }
.flash-error .flash-content { border-color: var(--danger); }

.flash-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.flash-success .flash-icon { background: var(--success); }
.flash-error .flash-icon { background: var(--danger); }

.flash-close {
    margin-left: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.flash-close:hover { color: var(--text-white); }

@keyframes slideDown {
    from { transform: translateX(-50%) translateY(-100%); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* === HERO === */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 24px 100px;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--primary-light);
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary), var(--accent));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 5s ease infinite;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

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

/* Search */
.search-form {
    display: flex;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 18px 20px 18px 56px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-white);
    font-size: 1rem;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15), 0 0 30px rgba(139, 92, 246, 0.1);
}

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

/* === STATS === */
.stats-section {
    padding: 0 24px;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.4s;
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

.stat-card:hover::before { opacity: 0.05; }

.stat-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-white), var(--text-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-top: 8px;
    position: relative;
    z-index: 1;
}

/* === SERVERS SECTION === */
.servers-section {
    padding: 100px 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
}

.section-title .highlight {
    color: var(--primary-light);
}

.section-subtitle {
    color: var(--text-muted);
    margin-top: 8px;
}

.sort-buttons {
    display: flex;
    gap: 8px;
    padding: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.sort-btn {
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: all 0.3s;
}

.sort-btn:hover { color: var(--text-white); }

.sort-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

/* === SERVER CARDS === */
.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.server-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.server-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 0;
}

.server-card:hover {
    transform: translateY(-10px) scale(1.01);
    border-color: var(--primary);
    box-shadow: 
        0 25px 50px rgba(139, 92, 246, 0.25),
        0 0 100px rgba(139, 92, 246, 0.1);
}

.server-card:hover::before { opacity: 0.05; }

.server-card-link {
    display: block;
    color: inherit;
    position: relative;
    z-index: 1;
}

.server-banner {
    position: relative;
    height: 140px;
    overflow: hidden;
}

.server-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.server-card:hover .server-banner img {
    transform: scale(1.1);
}

.server-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-dark), transparent 60%);
}

.server-rank {
    position: absolute;
    top: 14px;
    left: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 50px;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.server-verified {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 50px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
}

.server-content {
    padding: 24px;
    padding-top: 50px;
    position: relative;
}

.server-icon {
    position: absolute;
    top: -40px;
    left: 24px;
    width: 70px;
    height: 70px;
    border-radius: 18px;
    border: 4px solid var(--bg-dark);
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.server-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.server-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.server-card:hover .server-name { color: var(--primary-light); }

.server-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.server-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 5px 12px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--primary-light);
    transition: all 0.3s;
}

.tag:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--primary);
}

.server-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    border-top: 1px solid var(--border-light);
}

.server-votes {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.95rem;
}

.server-votes svg {
    width: 20px;
    height: 20px;
    color: var(--primary-light);
}

.server-link-text {
    font-size: 0.85rem;
    color: var(--primary-light);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s;
}

.server-card:hover .server-link-text { gap: 10px; }

/* Empty & Pagination */
.empty-state {
    text-align: center;
    padding: 80px 24px;
}

.empty-icon { font-size: 4rem; margin-bottom: 20px; }
.empty-state h3 { font-size: 1.5rem; margin-bottom: 12px; }
.empty-state p { color: var(--text-muted); margin-bottom: 24px; }

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.page-link {
    padding: 12px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-light);
    font-weight: 500;
    transition: all 0.3s;
}

.page-link:hover, .page-link.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.page-dots { color: var(--text-muted); padding: 0 8px; }

.pagination-info {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* === RECRUITMENTS / NABORY === */
.recruitments-section {
    padding: 100px 24px;
}

.recruitment-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.4s;
    overflow: hidden;
}

.recruitment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.recruitment-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15);
}

.recruitment-header {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.recruitment-server-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
}

.recruitment-server-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recruitment-info { flex: 1; }

.recruitment-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 6px;
}

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

.recruitment-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.recruitment-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.recruitment-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.recruitment-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.recruitment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.recruitment-expires {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.expires-soon { color: var(--warning); }
.expires-ok { color: var(--success); }

/* === DASHBOARD === */
.dashboard-section {
    padding: 120px 24px 80px;
}

.dashboard-header {
    margin-bottom: 40px;
}

.dashboard-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

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

.dashboard-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.3s;
}

.dashboard-card:hover {
    border-color: var(--primary);
}

.dashboard-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.dashboard-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-card-icon { font-size: 1.3rem; }

.dashboard-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dashboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius);
    transition: all 0.3s;
}

.dashboard-item:hover {
    background: rgba(139, 92, 246, 0.1);
}

.dashboard-item-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dashboard-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
}

.dashboard-item-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard-item-title {
    font-weight: 600;
    margin-bottom: 2px;
}

.dashboard-item-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.alert-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.alert-box-warning { background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.3); }
.alert-box-info { background: rgba(6, 182, 212, 0.1); border-color: rgba(6, 182, 212, 0.3); }

.alert-icon { font-size: 1.5rem; }
.alert-content h4 { margin-bottom: 4px; }
.alert-content p { font-size: 0.9rem; color: var(--text-muted); }

/* === FORMS === */
.form-page {
    padding: 120px 24px 80px;
}

.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 700px;
    margin: 0 auto;
}

.form-card h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.form-card > p {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.form-section {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-light);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h2 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-light);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-white);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}

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

.form-hint {
    display: block;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.char-counter {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.tags-select {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-checkbox {
    cursor: pointer;
}

.tag-checkbox input { display: none; }

.tag-checkbox span {
    display: inline-block;
    padding: 10px 18px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    transition: all 0.3s;
}

.tag-checkbox input:checked + span {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.tag-checkbox:hover span {
    border-color: var(--primary);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

.form-actions {
    margin-top: 32px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.required { color: var(--danger); }

/* === SERVER DETAIL === */
.server-detail {
    padding: 100px 24px 80px;
}

.detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.detail-banner {
    position: relative;
    height: 300px;
}

.detail-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-dark) 0%, transparent 50%);
}

.detail-header {
    position: absolute;
    bottom: 28px;
    left: 28px;
    right: 28px;
    display: flex;
    gap: 24px;
    align-items: flex-end;
}

.detail-icon {
    width: 110px;
    height: 110px;
    border-radius: 22px;
    border: 4px solid var(--bg-dark);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-card);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.detail-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-title h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.verified-badge {
    font-size: 0.8rem;
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 600;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    padding: 40px;
}

.detail-main h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
}

.detail-description {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.9;
    white-space: pre-wrap;
}

.vote-section {
    margin-top: 48px;
    padding: 28px;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.vote-info h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.vote-info p { color: var(--text-muted); }

.sidebar-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
}

.sidebar-box h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.stat-row dt { color: var(--text-muted); }
.stat-row dd { font-weight: 600; }

.share-input {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.share-input input {
    flex: 1;
    padding: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.btn-copy {
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s;
}

.btn-copy:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.back-link:hover { color: var(--primary-light); gap: 12px; }
    border-radius: var(--radius);
    transition: all 0.3s;
}

.admin-list-item:hover { background: rgba(139, 92, 246, 0.1); }

.list-item-icon { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.list-item-info { flex: 1; min-width: 0; }
.list-item-title { font-weight: 500; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item-meta { font-size: 0.8rem; color: var(--text-muted); }
.list-item-time { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; }

.admin-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 18px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: all 0.3s;
}

.filter-btn:hover { border-color: var(--primary); color: var(--text-light); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: white; }

.table-responsive { overflow-x: auto; }

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th, .admin-table td {
    padding: 16px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.admin-table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-table code {
    background: var(--bg-input);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
}

.table-server, .table-user { display: flex; align-items: center; gap: 12px; }
.table-server-icon, .table-user-avatar { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.table-server-name { font-weight: 500; }
.table-server-id { font-size: 0.75rem; color: var(--text-muted); }
.table-user-avatar-placeholder { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; }

.table-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: var(--danger); }
.badge-info { background: rgba(6, 182, 212, 0.15); color: var(--secondary); }
.badge-muted { background: var(--bg-input); color: var(--text-muted); }

.tags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.tag-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius);
    transition: all 0.3s;
}

.tag-item:hover { background: rgba(139, 92, 246, 0.1); }
.tag-info .tag-name { font-weight: 500; }
.tag-info .tag-count { font-size: 0.8rem; color: var(--text-muted); display: block; }
.tag-actions { display: flex; gap: 8px; }

.inline-form {
    display: flex;
    gap: 14px;
    max-width: 450px;
}

.inline-form input { flex: 1; }

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 24px;
    backdrop-filter: blur(10px);
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 450px;
    width: 100%;
}

.modal-content h3 { font-size: 1.3rem; margin-bottom: 20px; }

/* === FOOTER === */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
    padding: 60px 24px 40px;
    margin-top: auto;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 14px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 320px;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-muted);
    transition: all 0.3s;
}

.social-link svg { width: 20px; height: 20px; }
.social-link:hover { border-color: var(--primary); color: var(--primary-light); transform: translateY(-3px); }

.footer-links { display: flex; gap: 60px; }

.footer-col h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.footer-col a {
    display: block;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 12px;
    transition: all 0.3s;
}

.footer-col a:hover { color: var(--primary-light); padding-left: 6px; }

.footer-bottom {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-powered { display: flex; align-items: center; gap: 6px; }
.heart { color: var(--danger); animation: heartbeat 1.5s ease infinite; }

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .detail-content { grid-template-columns: 1fr; }
    .admin-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .navbar-content { flex-wrap: wrap; }
    .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--bg-dark); padding: 20px; border-bottom: 1px solid var(--border); }
    .nav-links.active { display: flex; }
    .mobile-menu-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 10px; }
    .mobile-menu-toggle span { width: 24px; height: 2px; background: var(--text-light); border-radius: 2px; transition: all 0.3s; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .section-header { flex-direction: column; align-items: flex-start; }
    .form-row { grid-template-columns: 1fr; }
    .detail-header { flex-direction: column; align-items: flex-start; gap: 16px; }
    .detail-title h1 { font-size: 1.6rem; }
    .vote-section { flex-direction: column; text-align: center; }
    .footer-content { grid-template-columns: 1fr; gap: 40px; }
    .footer-links { flex-direction: column; gap: 28px; }
    .btn-text-sub { display: none; }
    .recruitment-header { flex-direction: column; gap: 14px; }
    .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .search-form { flex-direction: column; }
    .servers-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .admin-stats-grid { grid-template-columns: 1fr; }
}
(--hashtag-color, #8b5cf6) 30%, transparent);
}

.server-hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.hashtag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    background: color-mix(in srgb, var(--hashtag-color, #8b5cf6) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--hashtag-color, #8b5cf6) 30%, transparent);
    border-radius: 6px;
    color: var(--hashtag-color, #8b5cf6);
}

.clear-filter {
    color: var(--danger);
    font-size: 0.9rem;
    margin-left: 12px;
}

.clear-filter:hover {
    color: #ff6b6b;
}

.hashtags-select {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hashtag-checkbox {
    cursor: pointer;
}

.hashtag-checkbox input { display: none; }

.hashtag-checkbox span {
    display: inline-block;
    padding: 10px 18px;
    background: color-mix(in srgb, var(--ht-color, #8b5cf6) 10%, var(--bg-input));
    border: 2px solid color-mix(in srgb, var(--ht-color, #8b5cf6) 30%, transparent);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ht-color, #8b5cf6);
    transition: all 0.3s;
}

.hashtag-checkbox input:checked + span {
    background: color-mix(in srgb, var(--ht-color, #8b5cf6) 25%, var(--bg-input));
    border-color: var(--ht-color, #8b5cf6);
    box-shadow: 0 4px 15px color-mix(in srgb, var(--ht-color, #8b5cf6) 30%, transparent);
}

.hashtag-checkbox:hover span {
    border-color: var(--ht-color, #8b5cf6);
}

/* Text muted helper */
.text-muted { color: var(--text-muted); }

/* Form hints row */
.form-hints {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.form-hints .form-hint {
    margin: 0;
}

.form-hints .char-counter {
    margin: 0;
}
