* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #050505;
    --bg-secondary: #0a0a0a;
    --bg-card: #111111;
    --bg-card-hover: #161616;
    --bg-glass: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(139, 92, 246, 0.3);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.4);
    --accent: #8b5cf6;
    --accent-light: #a78bfa;
    --accent-glow: rgba(139, 92, 246, 0.4);
    --discord: #5865F2;
    --success: #10b981;
    --danger: #ef4444;
    --gradient-1: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
    --gradient-2: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(139, 92, 246, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(6, 182, 212, 0.1), transparent);
    pointer-events: none;
    z-index: -1;
}

/* Navbar */
.navbar {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.5px;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.nav-links {
    display: flex;
    gap: 4px;
    background: var(--bg-glass);
    padding: 4px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 14px;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--text-primary);
    background: rgba(139, 92, 246, 0.15);
}

.nav-user {
    display: flex;
    align-items: center;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notifications-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
}

.notifications-btn:hover {
    border-color: var(--border-glow);
    box-shadow: 0 0 20px var(--accent-glow);
    color: var(--text-primary);
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    padding: 8px 16px 8px 8px;
    border-radius: 50px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.user-profile:hover {
    border-color: var(--border-glow);
    box-shadow: 0 0 20px var(--accent-glow);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

.user-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.user-name {
    font-weight: 500;
    font-size: 14px;
}

.btn-discord {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--discord);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.btn-discord:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.4);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-glow);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.btn-large {
    padding: 18px 36px;
    font-size: 16px;
    border-radius: 16px;
}

.btn-glow {
    animation: btnGlow 2s ease-in-out infinite;
}

@keyframes btnGlow {
    0%, 100% { box-shadow: 0 4px 20px var(--accent-glow); }
    50% { box-shadow: 0 4px 40px var(--accent-glow); }
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 72px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: heroPulse 4s ease-in-out infinite;
}

@keyframes heroPulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.5; transform: translate(-50%, -50%) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 40px 20px;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: 72px;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -2px;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .highlight {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    margin-top: 80px;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: 36px;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-stat-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

.page-container {
    padding: 120px 32px 80px;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 48px;
    letter-spacing: -1px;
}

.main-content {
    padding-top: 72px;
}

/* Features */
.features {
    padding: 120px 0;
    position: relative;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glow);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* News Section */
.news-section {
    padding: 120px 0;
    background: linear-gradient(180deg, transparent 0%, var(--bg-secondary) 50%, transparent 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 18px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glow);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.news-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-card-hover);
    position: relative;
}

.news-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(transparent, var(--bg-card));
}

.news-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    opacity: 0.3;
}

.news-content {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 13px;
    color: var(--accent-light);
    font-weight: 500;
}

.news-title {
    font-size: 20px;
    margin: 12px 0;
    font-weight: 600;
    line-height: 1.4;
}

.news-excerpt {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    flex: 1;
}

.section-footer {
    text-align: center;
    margin-top: 48px;
}

/* News list page */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.news-list-item {
    display: flex;
    gap: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

.news-list-item:hover {
    border-color: var(--border-glow);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.news-list-image {
    width: 280px;
    min-height: 200px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.news-list-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-list-title {
    font-size: 24px;
    margin: 12px 0;
    font-weight: 600;
}

/* Article */
.article {
    max-width: 800px;
    margin: 0 auto;
}

.article-image {
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    margin-bottom: 32px;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.article-title {
    font-size: 48px;
    margin-bottom: 32px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.2;
}

.article-content {
    color: var(--text-secondary);
    line-height: 1.9;
    font-size: 17px;
}

.article-content p {
    margin-bottom: 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 32px;
    font-weight: 500;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--accent-light);
}

/* Download page */
.download-hero {
    text-align: center;
    padding: 80px 0;
    position: relative;
}

.download-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0.3;
}

.download-section {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    margin-bottom: 80px;
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    padding: 48px;
    position: relative;
    overflow: hidden;
}

.main-download {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-color: var(--border-glow);
}

.main-download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-1);
}

.download-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-1);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin-bottom: 24px;
}

.download-card h2 {
    font-size: 28px;
    margin-bottom: 16px;
    font-weight: 700;
}

.download-card p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.download-buttons {
    margin-bottom: 20px;
}

.download-version {
    font-size: 13px;
    color: var(--text-muted);
}

.requirements-card h3 {
    font-size: 20px;
    margin-bottom: 24px;
    font-weight: 600;
}

.requirements-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.requirement {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.req-label {
    color: var(--text-secondary);
}

.req-value {
    font-weight: 500;
}

/* Steps */
.install-steps {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    padding: 64px;
}

.install-steps h3 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 48px;
    font-weight: 700;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 80px;
    right: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--border-color), var(--accent));
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 64px;
    height: 64px;
    background: var(--bg-primary);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
    color: var(--accent-light);
}

.step h4 {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
}

.step p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Wiki */
.wiki-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
}

.wiki-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 28px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.wiki-sidebar h3 {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    font-weight: 600;
}

.wiki-categories {
    list-style: none;
}

.wiki-categories li {
    margin-bottom: 4px;
}

.wiki-categories a {
    display: block;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s;
    font-weight: 500;
}

.wiki-categories a:hover, .wiki-categories a.active {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-light);
}

.wiki-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.wiki-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 28px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

.wiki-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
}

.wiki-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
}

.wiki-category {
    display: inline-block;
    font-size: 12px;
    color: var(--accent-light);
    background: rgba(139, 92, 246, 0.15);
    padding: 6px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-weight: 500;
}

.wiki-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Wiki article */
.wiki-article {
    max-width: 800px;
}

.wiki-article-header {
    margin-bottom: 40px;
}

.wiki-article-header h1 {
    font-size: 42px;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: -1px;
}

.wiki-article-content {
    color: var(--text-secondary);
    line-height: 1.9;
    font-size: 17px;
}

.wiki-article-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 14px;
}

/* Profile */
.profile-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: var(--gradient-1);
    opacity: 0.1;
}

.profile-header {
    display: flex;
    gap: 28px;
    position: relative;
    z-index: 1;
    margin-bottom: 32px;
}

.profile-avatar-large img, .avatar-placeholder-large {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    border: 4px solid var(--accent);
    box-shadow: 0 8px 32px var(--accent-glow);
}

.avatar-placeholder-large {
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
}

.profile-info h2 {
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 700;
}

.profile-discord {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
}

.badge-admin {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
    color: var(--accent-light);
    border: 1px solid var(--border-glow);
}

.profile-stats {
    display: flex;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 4px;
}

.profile-settings {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    padding: 40px;
}

.profile-settings h3 {
    font-size: 22px;
    margin-bottom: 32px;
    font-weight: 600;
}

.setting-group {
    margin-bottom: 28px;
}

.setting-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.setting-hint {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.input-group {
    display: flex;
    gap: 12px;
}

.input-group input {
    flex: 1;
}

.admin-section, .logout-section {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--border-color);
}

.admin-section h4 {
    font-size: 16px;
    margin-bottom: 16px;
    font-weight: 600;
}

/* Forms */
input, textarea, select {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

input::placeholder, textarea::placeholder {
    color: var(--text-muted);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.form-hint {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
}

.admin-form {
    max-width: 700px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
}

/* Admin */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px;
    transition: all 0.3s;
}

.admin-card:hover {
    border-color: var(--border-glow);
}

.admin-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 600;
}

.admin-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Flash messages */
.flash-messages {
    position: fixed;
    top: 92px;
    right: 32px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.flash-message {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 16px 24px;
    border-radius: 16px;
    backdrop-filter: blur(20px);
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.flash-message.success {
    border-color: var(--success);
}

.flash-message.error {
    border-color: var(--danger);
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
    font-size: 18px;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 48px;
}

.pagination-info {
    color: var(--text-muted);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 48px 0;
    margin-top: 80px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 18px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-light);
}

.footer-copy {
    color: var(--text-muted);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .download-section { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid::before { display: none; }
    .wiki-layout { grid-template-columns: 1fr; }
    .wiki-sidebar { position: static; }
    .profile-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 42px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-stats { flex-direction: column; gap: 24px; }
    .feature-grid { grid-template-columns: 1fr; }
    .nav-links { display: none !important; }
    .nav-user { display: none !important; }
    .mobile-menu-btn { display: flex !important; }
    .nav-container { padding: 0 20px; }
    .page-container { padding: 100px 20px 60px; }
    .page-title { font-size: 32px; }
    .profile-header { flex-direction: column; align-items: center; text-align: center; }
    .news-list-item { flex-direction: column; }
    .news-list-image { width: 100%; height: 200px; }
    .footer-container { flex-direction: column; gap: 24px; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Selection */
::selection {
    background: var(--accent);
    color: white;
}

/* Hero news card */
.hero-news {
    margin-top: 60px;
}

.hero-news-card {
    display: inline-block;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px 32px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    max-width: 500px;
}

.hero-news-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.hero-news-badge {
    display: inline-block;
    font-size: 12px;
    color: var(--accent-light);
    background: rgba(139, 92, 246, 0.15);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    font-weight: 500;
}

.hero-news-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.hero-news-date {
    font-size: 13px;
    color: var(--text-muted);
}

/* Profile page redesign */
.profile-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 32px;
}

.profile-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px;
    text-align: center;
}

.profile-card .profile-header {
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.profile-card .profile-avatar-large img,
.profile-card .avatar-placeholder-large {
    width: 150px;
    height: auto;
    max-height: 300px;
    border-radius: 16px;
}

.skin-preview {
    image-rendering: pixelated;
    width: 150px !important;
}

.profile-card .profile-info {
    text-align: center;
}

.profile-card .profile-info h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.profile-discord {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* Stats grid */
.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-glass);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-card .stat-value {
    font-size: 20px;
    font-weight: 700;
}

.stat-card .stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* Settings sections */
.profile-settings {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.settings-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 28px;
}

.settings-section h3 {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
}

.settings-section .setting-hint {
    margin-bottom: 16px;
}

/* Skin upload */
.skin-upload-area {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.current-skin {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.current-skin img {
    width: 64px;
    height: 64px;
    image-rendering: pixelated;
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

.upload-box {
    flex: 1;
    min-width: 200px;
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-secondary);
}

.upload-box:hover {
    border-color: var(--accent);
    background: rgba(139, 92, 246, 0.05);
    color: var(--accent-light);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.logout-section {
    border-top: 1px solid var(--border-color);
    padding-top: 28px;
    margin-top: 8px;
}

@media (max-width: 900px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .stat-card {
        flex: 1;
        min-width: 150px;
    }
}


/* 3D Skin Viewer */
.skin-viewer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.skin-viewer-container canvas {
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%);
    border: 2px solid var(--border-glow);
    box-shadow: 0 8px 32px var(--accent-glow);
    cursor: grab;
}

.skin-viewer-container canvas:active {
    cursor: grabbing;
}

.skin-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

/* Modal System */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 90%;
    width: 450px;
}

.modal-container.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.modal-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.modal-message {
    font-size: 16px;
    text-align: center;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.modal-content .btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-content .btn-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
    color: white;
    border: none;
}

.modal-content .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

.modal-content .btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.modal-content .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-secondary);
}

@media (max-width: 768px) {
    .modal-container {
        width: 90%;
    }
    
    .modal-content {
        padding: 24px;
    }
    
    .modal-title {
        font-size: 20px;
    }
    
    .modal-message {
        font-size: 14px;
    }
}


/* Mobile Navigation */
.mobile-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.mobile-menu-btn:hover {
    border-color: var(--border-glow);
    background: rgba(255, 255, 255, 0.08);
}

.mobile-menu-btn svg {
    color: var(--text-primary);
}

/* Hide mobile menu on desktop */
.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 101;
    overflow-y: auto;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-links {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-link {
    display: block;
    padding: 16px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--text-primary);
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
}

.mobile-menu-user {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-notifications,
.mobile-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    position: relative;
}

.mobile-notifications:hover,
.mobile-profile:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-glow);
}

.mobile-notifications svg,
.mobile-profile svg {
    color: var(--accent);
}

.mobile-notifications .notification-badge {
    position: absolute;
    right: 16px;
}

.mobile-avatar,
.mobile-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mobile-avatar {
    object-fit: cover;
    border: 2px solid var(--accent);
}

.mobile-avatar-placeholder {
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.mobile-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    background: var(--discord);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.mobile-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.4);
}

body.menu-open {
    overflow: hidden;
}

@media (max-width: 480px) {
    .nav-logo .logo-text {
        display: none;
    }
    
    .mobile-menu-links {
        padding: 16px;
    }
    
    .mobile-nav-link {
        padding: 14px 16px;
        font-size: 15px;
    }
    
    .mobile-menu-user {
        padding: 16px;
    }
}
