@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: #ffffff;
    min-height: 100vh;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 130, 246, 0.4) rgba(20, 10, 30, 0.3);
    display: flex;
    flex-direction: column;
    background: #0a0c15;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(20, 10, 30, 0.3);
    backdrop-filter: blur(4px);
}

::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.4);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.7);
}

/* ФОН */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/images/background.jpg') no-repeat center center/cover;
    opacity: 0.55;
    filter: brightness(0.5);
    z-index: -1;
}

body {
    background: linear-gradient(135deg, #0a0f2a 0%, #0d1b3e 50%, #1a2a6c 100%);
}

/* ========== ВЕРХНЯЯ ПАНЕЛЬ ========== */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 14px 0 0 0;
    z-index: 100;
    background: rgba(10, 20, 40, 0.6);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    transition: background 0.3s ease;
}

.top-bar.scrolled {
    background: rgba(10, 20, 40, 0.8);
    border-bottom: 1px solid rgba(59, 130, 246, 0.4);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 40px;
}

.logo-img {
    height: 45px;
    width: auto;
    border-radius: 14px;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.3));
    transition: transform 0.2s;
}

.logo-img:hover {
    transform: scale(1.02);
}

.brand-name {
    font-size: 1.7rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #60a5fa 80%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
    text-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.header-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
    width: 100%;
    margin-top: 12px;
}

/* ========== ПРАВАЯ ЧАСТЬ ШАПКИ ========== */
.header-right {
    position: absolute;
    right: 40px;
    top: 14px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-buttons {
    display: flex;
    align-items: center;
}

.auth-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.5);
    padding: 8px 20px;
    border-radius: 40px;
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.auth-btn:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    transform: scale(1.02);
}

.user-menu {
    position: relative;
}

.avatar-placeholder {
    font-size: 2rem;
    color: #60a5fa;
    cursor: pointer;
    transition: transform 0.2s;
}

.avatar-placeholder:hover {
    transform: scale(1.05);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(20, 25, 45, 0.98);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 10px;
    min-width: 180px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    z-index: 100;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
}

.user-name {
    display: block;
    padding: 8px 15px;
    color: #60a5fa;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.user-dropdown a {
    display: block;
    padding: 8px 15px;
    color: #e5e7eb;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.user-dropdown a:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

/* ========== ОСНОВНОЙ КОНТЕНТ ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px 0px;
    position: relative;
    z-index: 5;
    flex: 1;
    width: 100%;
}

/* ========== ГЛАВНАЯ СТРАНИЦА ========== */
.hero-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    margin-top: 80px;
    margin-bottom: 40px;
}

.welcome-title {
    font-size: 6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #60a5fa 50%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 50px rgba(59, 130, 246, 0.4);
    letter-spacing: -0.02em;
    margin-bottom: 30px;
    line-height: 1.2;
}

.server-description {
    margin-bottom: 35px;
}

.server-description p {
    font-size: 1.2rem;
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.server-description strong {
    color: #60a5fa;
}

.version-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.25);
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 12px;
    border: 1px solid rgba(59, 130, 246, 0.5);
    backdrop-filter: blur(4px);
}

.copy-ip-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: 2px solid #3b82f6;
    color: #ffffff;
    padding: 16px 48px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 60px;
    backdrop-filter: blur(8px);
    background-color: rgba(20, 10, 30, 0.3);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 40px;
}

.copy-ip-btn:hover {
    background-color: rgba(59, 130, 246, 0.2);
    border-color: #60a5fa;
    box-shadow: 0 0 40px #3b82f6;
    transform: translateY(-3px);
}

/* ========== СЕТКА ФОТО 3x2 ========== */
.screenshots-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 20px;
    margin-bottom: 40px;
}

.screenshot-row {
    display: flex;
    justify-content: center;
    gap: 45px;
    flex-wrap: wrap;
}

.screenshot {
    width: 280px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.screenshot img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.screenshot:hover img {
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.4);
    border-color: rgba(59, 130, 246, 0.8);
    transform: scale(1.02);
}

.screenshot[data-tilt="1"] { transform: rotate(-2deg) translateY(-3px); }
.screenshot[data-tilt="2"] { transform: rotate(2deg) translateY(4px); }
.screenshot[data-tilt="3"] { transform: rotate(-1deg) translateY(-2px); }
.screenshot[data-tilt="4"] { transform: rotate(3deg) translateY(-1px); }
.screenshot[data-tilt="5"] { transform: rotate(-2deg) translateY(3px); }
.screenshot[data-tilt="6"] { transform: rotate(1deg) translateY(-2px); }

/* ========== НИЖНЯЯ НАВИГАЦИЯ ========== */
.nav-wrapper {
    position: fixed;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 100;
}

.nav-container {
    background: rgba(10, 20, 40, 0.6);
    backdrop-filter: blur(16px);
    border-radius: 60px;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    border: 1px solid rgba(59, 130, 246, 0.35);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.nav {
    display: flex;
    gap: 12px;
}

.nav-link {
    background: transparent;
    border: none;
    padding: 10px 24px;
    border-radius: 40px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.nav-link i { font-size: 1rem; }
.nav-link:hover { color: #fff; background: rgba(59, 130, 246, 0.2); }
.nav-link.active { background: #3b82f6; color: #fff; box-shadow: 0 0 15px rgba(59, 130, 246, 0.5); }

/* ========== СТРАНИЦА ЗАЯВОК ========== */
.apply-card {
    background: rgba(20, 15, 30, 0.45);
    backdrop-filter: blur(12px);
    border-radius: 32px;
    padding: 50px 40px;
    max-width: 1000px;
    margin: 80px auto 0;
    border: 1px solid rgba(59, 130, 246, 0.25);
    text-align: center;
}

.apply-icon { font-size: 4rem; color: #60a5fa; margin-bottom: 20px; }
.apply-card h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
    font-weight: 600;
    background: linear-gradient(135deg, #ffffff, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.apply-methods {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.method-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 24px;
    padding: 30px;
    width: 350px;
    text-align: center;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}
.method-card:hover { border-color: rgba(59, 130, 246, 0.5); transform: translateY(-5px); }
.method-icon { font-size: 3rem; margin-bottom: 15px; }
.method-icon .fa-telegram { color: #26A5E4; }
.method-icon .fa-discord { color: #5865F2; }
.method-card h3 { font-size: 1.6rem; margin-bottom: 15px; font-weight: 600; }
.method-card p { font-size: 0.95rem; color: rgba(255, 255, 255, 0.8); margin: 10px 0; }
.apply-link {
    display: inline-block;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.5);
    padding: 10px 20px;
    border-radius: 40px;
    color: #60a5fa;
    text-decoration: none;
    font-size: 0.9rem;
    margin: 15px 0;
    transition: all 0.2s;
}
.apply-link:hover { background: rgba(59, 130, 246, 0.4); color: #fff; }
.method-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
}
.method-note strong { color: #60a5fa; }

/* ========== СТАТУС КАРТОЧКА ========== */
.status-card {
    background: rgba(20, 15, 30, 0.45);
    backdrop-filter: blur(12px);
    border-radius: 32px;
    padding: 45px 55px;
    border: 1px solid rgba(59, 130, 246, 0.25);
    width: 90%;
    max-width: 1100px;
    margin: 80px auto 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}
.status-card:hover { transform: translateY(-5px); border-color: rgba(59, 130, 246, 0.45); box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4); }
.status-card h2 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 35px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #ffffff, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.status-info { display: flex; flex-direction: column; gap: 20px; }
.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.15);
    flex-wrap: wrap;
    gap: 10px;
}
.status-label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.status-label i { width: 22px; color: #60a5fa; }
.status-value {
    font-weight: 600;
    font-family: monospace;
    font-size: 1.05rem;
    background: rgba(59, 130, 246, 0.15);
    padding: 4px 14px;
    border-radius: 20px;
}
.status-badge {
    background: #15803d;
    padding: 5px 18px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 600;
}
.status-badge.offline { background: #b91c1c; }
.copy-small {
    background: rgba(59, 130, 246, 0.2);
    border: none;
    color: #fff;
    padding: 6px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s;
}
.copy-small:hover { background: #3b82f6; }
.status-note { font-size: 0.8rem; text-align: center; margin-top: 30px; color: rgba(255, 255, 255, 0.5); }

/* ========== СТРАНИЦА ПРАВИЛ ========== */
.rules-container { max-width: 1400px; margin: 0 auto; padding: 20px; }
.rules-header { text-align: center; margin-bottom: 40px; margin-top: 35px; }
.rules-header h1 { font-size: 2.5rem; background: linear-gradient(135deg, #ffffff, #60a5fa); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 10px; }
.rules-two-columns { display: flex; gap: 30px; flex-wrap: wrap; }
.rules-col {
    flex: 1;
    min-width: 300px;
    background: rgba(20, 15, 30, 0.45);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 25px;
    border: 1px solid rgba(59, 130, 246, 0.25);
}
.rules-col h2 { font-size: 1.6rem; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid rgba(59, 130, 246, 0.5); display: flex; align-items: center; gap: 10px; }
.inner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rules-section { margin-bottom: 25px; break-inside: avoid; }
.rules-section h3 { font-size: 1.1rem; color: #60a5fa; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.rule-item {
    padding: 6px 0 6px 20px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
    border-left: 2px solid rgba(59, 130, 246, 0.3);
    margin-bottom: 6px;
}
.rule-item strong { color: #f59e0b; }
.rule-number { color: #60a5fa; font-weight: 600; margin-right: 8px; }
.ban-list, .allowed-list { list-style: none; padding: 0; }
.ban-list li, .allowed-list li {
    padding: 6px 0 6px 22px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
}
.ban-list li:before { content: "⚠️"; position: absolute; left: 0; opacity: 0.7; font-size: 0.7rem; }
.allowed-list li:before { content: "✅"; position: absolute; left: 0; }
.subnote { font-size: 0.75rem; color: rgba(255, 255, 255, 0.5); margin-top: 20px; text-align: center; padding-top: 15px; border-top: 1px solid rgba(59, 130, 246, 0.2); }
.full-width { grid-column: span 2; }

/* ========== ФОРУМ ========== */
.forum-main { max-width: 1400px; margin: 0 auto; padding: 30px; }
.forum-container { display: flex; gap: 30px; }
.forum-sidebar { width: 280px; flex-shrink: 0; }
.sidebar-card {
    background: rgba(20, 25, 45, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.2s;
}
.sidebar-card:hover { border-color: rgba(59, 130, 246, 0.4); }
.sidebar-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 15px; display: flex; align-items: center; gap: 8px; color: #60a5fa; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.stat-item { text-align: center; }
.stat-value { display: block; font-size: 1.5rem; font-weight: 700; color: #fff; }
.stat-label { font-size: 0.7rem; color: rgba(255, 255, 255, 0.5); }
.categories-list { list-style: none; }
.categories-list li {
    padding: 10px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    transition: all 0.2s;
    color: rgba(255, 255, 255, 0.7);
}
.categories-list li:hover { color: #60a5fa; transform: translateX(5px); }
.categories-list li i { width: 24px; }
.active-users-list { display: flex; flex-direction: column; gap: 8px; }
.active-user { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.online-dot { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; display: inline-block; box-shadow: 0 0 5px #22c55e; }
.forum-content { flex: 1; }
.forum-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}
.filter-bar {
    display: flex;
    gap: 8px;
    background: rgba(20, 25, 45, 0.5);
    padding: 5px;
    border-radius: 50px;
}
.filter-btn {
    background: transparent;
    border: none;
    padding: 8px 20px;
    border-radius: 40px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}
.filter-btn:hover { color: #fff; }
.filter-btn.active { background: #3b82f6; color: #fff; box-shadow: 0 0 15px rgba(59, 130, 246, 0.4); }
.create-topic-btn {
    background: linear-gradient(135deg, #3b82f6, #1e3a8a);
    border: none;
    padding: 10px 24px;
    border-radius: 40px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.create-topic-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4); }
.topics-list {
    background: rgba(20, 25, 45, 0.3);
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.15);
    overflow: hidden;
}
.topic-item {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.2s;
    cursor: pointer;
}
.topic-item:hover { background: rgba(59, 130, 246, 0.05); transform: translateX(5px); }
.topic-icon { font-size: 1.8rem; margin-right: 15px; width: 45px; text-align: center; }
.topic-icon.pinned i { color: #f59e0b; }
.topic-info { flex: 1; }
.topic-title { font-size: 1rem; font-weight: 600; margin-bottom: 5px; }
.topic-meta { font-size: 0.7rem; color: rgba(255, 255, 255, 0.5); display: flex; gap: 15px; }
.topic-stats { display: flex; gap: 20px; margin: 0 20px; font-size: 0.8rem; }
.topic-stats .count { font-weight: 700; color: #60a5fa; }
.topic-last-post { font-size: 0.7rem; min-width: 130px; text-align: right; }
.pinned-badge {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    font-size: 0.6rem;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
}
.loading-spinner { text-align: center; padding: 50px; color: #60a5fa; }
.empty-state { text-align: center; padding: 50px; color: rgba(255, 255, 255, 0.6); }

/* ========== ТЕМА ФОРУМА ========== */
.topic-container { max-width: 1000px; margin: 0 auto; }
.topic-header {
    background: rgba(20, 25, 45, 0.5);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}
.topic-header h1 { font-size: 1.8rem; margin-bottom: 15px; }
.topic-meta-header {
    display: flex;
    gap: 20px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    margin-bottom: 20px;
}
.post {
    background: rgba(20, 25, 45, 0.3);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid rgba(59, 130, 246, 0.15);
}
.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}
.post-author { display: flex; align-items: center; gap: 10px; }
.post-author i { font-size: 1.5rem; color: #60a5fa; }
.post-author-name { font-weight: 600; color: #60a5fa; }
.post-date { font-size: 0.7rem; color: rgba(255, 255, 255, 0.5); }
.post-content { line-height: 1.6; }
.post-actions { margin-top: 15px; display: flex; gap: 15px; }
.post-actions button {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 0.8rem;
}
.post-actions button:hover { color: #60a5fa; }
.reply-section {
    background: rgba(20, 25, 45, 0.5);
    border-radius: 20px;
    padding: 25px;
    margin-top: 30px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}
.reply-section h3 { margin-bottom: 15px; }
.reply-textarea {
    width: 100%;
    padding: 12px;
    background: rgba(10, 15, 30, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    color: #fff;
    min-height: 100px;
    resize: vertical;
    margin-bottom: 15px;
}
.reply-btn {
    background: linear-gradient(135deg, #3b82f6, #1e3a8a);
    border: none;
    padding: 10px 25px;
    border-radius: 40px;
    color: #fff;
    cursor: pointer;
}
.back-link { display: inline-block; margin-bottom: 20px; color: #60a5fa; text-decoration: none; }

/* ========== СОЗДАНИЕ ТЕМЫ ========== */
.create-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(20, 25, 45, 0.5);
    border-radius: 24px;
    padding: 30px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}
.create-container h1 { font-size: 1.8rem; margin-bottom: 25px; display: flex; align-items: center; gap: 10px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: rgba(255, 255, 255, 0.8); }
.form-group select, .form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(10, 15, 30, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.2s;
}
.form-group select:focus, .form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}
.form-group textarea { min-height: 200px; resize: vertical; }
.form-actions { display: flex; gap: 15px; justify-content: flex-end; }
.submit-btn {
    background: linear-gradient(135deg, #3b82f6, #1e3a8a);
    border: none;
    padding: 12px 30px;
    border-radius: 40px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}
.cancel-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 30px;
    border-radius: 40px;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
}
.cancel-btn:hover { background: rgba(255, 255, 255, 0.2); }
.markdown-hint { font-size: 0.7rem; color: rgba(255, 255, 255, 0.4); margin-top: 5px; }

/* ========== АВТОРИЗАЦИЯ (МОДАЛЬНОЕ ОКНО) ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-content {
    background: linear-gradient(135deg, #0f172f, #0b1120);
    border-radius: 32px;
    padding: 35px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    border: 1px solid #3b82f6;
    position: relative;
}
.modal-icon { font-size: 3rem; color: #60a5fa; margin-bottom: 15px; }
.modal-content h2 { margin-bottom: 15px; color: #fff; }
.modal-content p { margin-bottom: 20px; color: rgba(255, 255, 255, 0.7); }
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #bbb;
}
.close-modal:hover { color: #fff; }

/* Стили для форм авторизации */
.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
    padding-bottom: 10px;
}

.auth-tab {
    background: transparent;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}

.auth-tab.active {
    background: #3b82f6;
    color: #fff;
}

.auth-input {
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0;
    background: rgba(10, 15, 30, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
}

.auth-submit-btn {
    width: 100%;
    padding: 12px;
    background: #3b82f6;
    border: none;
    border-radius: 40px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

.auth-resend-btn {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid rgba(59, 130, 246, 0.5);
    border-radius: 40px;
    color: #60a5fa;
    cursor: pointer;
    margin-top: 10px;
}

.auth-message {
    margin-top: 15px;
    font-size: 0.85rem;
    text-align: center;
}

.auth-message.success {
    color: #22c55e;
}

.auth-message.error {
    color: #ef4444;
}

/* ========== ФУТЕР ========== */
footer {
    position: relative;
    z-index: 5;
    padding: 20px 40px 30px;
    margin-top: auto;
}
.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.4), transparent);
    margin-bottom: 20px;
}
.footer-copyright { text-align: center; font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); }
.footer-links { display: flex; gap: 20px; justify-content: center; margin-top: 10px; }
.footer-links a { color: rgba(255, 255, 255, 0.5); text-decoration: none; font-size: 0.8rem; }
.footer-links a:hover { color: #60a5fa; }

/* ========== АДАПТИВ ========== */
@media (max-width: 1000px) {
    .welcome-title { font-size: 4rem; }
    .hero-centered { margin-top: 60px; }
    .brand-name { font-size: 1.4rem; }
    .logo-img { height: 38px; }
    .screenshot { width: 220px; }
    .screenshot-row { gap: 25px; }
    .status-card { margin: 60px auto 0; padding: 35px 40px; width: 95%; }
    .apply-card { margin: 60px auto 0; padding: 35px 25px; }
    .method-card { width: 300px; padding: 20px; }
    .rules-two-columns { flex-direction: column; }
    .forum-container { flex-direction: column; }
    .forum-sidebar {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    .sidebar-card { margin-bottom: 0; }
    .forum-actions { flex-direction: column; align-items: stretch; }
    .filter-bar { justify-content: center; }
    .topic-item { flex-wrap: wrap; }
    .topic-stats { margin-left: 60px; margin-top: 10px; }
    .topic-last-post { text-align: left; margin-left: 60px; margin-top: 5px; }
    .header-right { right: 20px; }
}

@media (max-width: 768px) {
    .container { padding: 15px 20px 0px; }
    .welcome-title { font-size: 3rem; }
    .hero-centered { margin-top: 50px; }
    .copy-ip-btn { padding: 12px 32px; font-size: 1rem; margin-bottom: 30px; }
    .screenshot { width: 260px; }
    .screenshot-row { flex-direction: column; align-items: center; gap: 25px; }
    .screenshots-grid { gap: 25px; }
    .apply-methods { flex-direction: column; align-items: center; gap: 30px; }
    .method-card { width: 100%; max-width: 350px; }
    .server-description p { font-size: 1rem; }
    .nav-container { padding: 6px 16px; gap: 12px; }
    .nav { gap: 4px; }
    .nav-link { padding: 6px 14px; font-size: 0.85rem; }
    .nav-link span { display: none; }
    .nav-link i { font-size: 1.1rem; margin: 0; }
    .status-card { padding: 25px 25px; margin: 50px auto 0; width: 100%; }
    .status-card h2 { font-size: 1.6rem; }
    .status-label { font-size: 0.9rem; }
    .status-value { font-size: 0.9rem; }
    .footer-copyright { font-size: 0.7rem; }
    .inner-grid { grid-template-columns: 1fr; gap: 10px; }
    .full-width { grid-column: span 1; }
    .forum-header-bar { flex-direction: column; align-items: stretch; }
    .create-topic-btn { text-align: center; justify-content: center; }
    .filter-bar { justify-content: center; }
    .auth-btn span { display: none; }
    .auth-btn i { font-size: 1.1rem; margin: 0; }
    .forum-main { padding: 15px; }
    .topic-title { font-size: 0.9rem; }
    .filter-btn { padding: 6px 12px; font-size: 0.75rem; }
    .auth-tab { font-size: 0.9rem; padding: 6px 12px; }
}

@media (max-width: 480px) {
    .welcome-title { font-size: 2.2rem; }
    .hero-centered { margin-top: 40px; }
    .brand-name { font-size: 1.1rem; }
    .logo-img { height: 32px; }
    .copy-ip-btn { padding: 10px 20px; font-size: 0.85rem; }
    .screenshot { width: 280px; }
    .server-description p { font-size: 0.9rem; }
    .version-badge { font-size: 0.75rem; padding: 5px 12px; }
    .apply-card h2 { font-size: 1.6rem; }
    .method-card h3 { font-size: 1.3rem; }
    .rules-header h1 { font-size: 1.8rem; }
    .rules-col { padding: 15px; }
    .rules-col h2 { font-size: 1.3rem; }
}