/* Переменные */
:root {
    --primary-color: #e6b347;
    --secondary-color: #2ecc71;
    --text-color: #fff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --background-color: rgba(0, 0, 0, 0.8);
    --border-color: rgba(255, 255, 255, 0.1);
    --hover-color: rgba(255, 255, 255, 0.05);
    --success-color: #2ecc71;
    --error-color: #e74c3c;
}

/* Общие стили */
::-webkit-scrollbar {
    width: 0;
}

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

html, body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Arial', sans-serif;
    line-height: 1.7;
    background: linear-gradient(120deg, #181a20 0%, #23242a 100%);
    color: var(--text-color);
    position: relative;
}
body::before {
    display: none !important;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1px;
    width: 100%;
    flex: 1;
}

.news-card.news-card-flex {
    margin-top: 20px !important;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 24px;
    padding: 18px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    background: rgba(29,29,29,0.97);
    border: 2px solid #e6b347;
    max-width: 1200px !important;
    width: 100%;
    margin: 0 auto;
    min-height: 150px;
}

.news-card__image-block {
    border-radius: 0px 0px 0px 0px !important;
    flex: 0 0 300px !important;
    width: 180px !important;
    min-height: 120px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 100% !important;
}

.news-card__image {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    background: rgba(0, 0, 0, 0.0) !important;
    display: block;
    flex-grow: 1;
    margin: 0;
    aspect-ratio: 16/9;
}

.news-card__date {
    margin-top: 25px !important;
    background: rgba(40,40,40,0.7);
    color: #ccc;
    font-weight: normal;
    font-size: 0.98rem;
    border-radius: 6px;
    padding: 4px 14px;
    box-shadow: none;
    align-self: flex-start;
    position: static;
}

.news-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-left: 24px;
    min-width: 0;
}

.news-card__title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #e6b347;
    margin-bottom: 8px;
}

.news-card__title-link {
    color: #e6b347 !important;
    text-decoration: none !important;
    font-weight: bold;
    font-size: 1.25rem;
    transition: color 0.2s;
}
.news-card__title-link:hover {
    color: #fff176 !important;
}

.news-card__text {
    color: #fff;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 10px;
    overflow: visible;
    height: auto;
}

.news-card__bottom-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    margin-top: 12px;
    gap: 16px;
}

.news-card__more {
    color: #e6b347;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05rem;
    transition: color 0.2s;
    margin: 0;
}
.news-card__more:hover {
    color: #fff176;
}

#voteBox {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    display: none;
    max-width: 450px; /* ограничение ширины */
    margin: 0 auto;    /* по центру */
    margin-left: 80px;
}

.content-area {
    display: flex;
    flex-direction: row; /* важно */
    justify-content: space-between;
    align-items: flex-start; /* выравнивание по верхнему краю */
    gap: 2rem;
}

/* Видео фон (только для главной страницы) */
body.index-page .video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

body.index-page .video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    will-change: transform;
}

/* Шапка */
header {
    background: rgba(0, 0, 0, 0.384);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    height: 80px;
}

header .container {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 0px !important;
}

header nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
    position: relative;
    gap: 0;
}

.logo {
    color: #e6b347;
    position: relative;
    right: 0;
    left: 0;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 2rem;
    z-index: 2;
}

.logo img {
    margin-right: 10px;
    height: 80px;
    width: auto;
}

.logo-text {
    margin-right: 100px !important;
    color: var(--primary-color) !important;
    font-size: 25px !important;
    font-weight: bold !important;
    margin-left: 1rem !important;
}

.username-highlight {
    color: #f0b400; /* Золотой цвет, можно заменить на свой */
    font-weight: bold;
    text-decoration: underline;
}

.avatar { /* Аватар в личном кабинете */
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.login-title {
    text-align: center;
    margin-bottom: 20px;
}

/* Навигация для остальных страниц */
.nav-links {
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: auto;
    justify-content: center;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    line-height: 1;
    white-space: nowrap;
    text-align: center;
}

.nav-links a:hover,
.nav-links a.active {
    border-bottom: 2px solid var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
}

.auth-links {
    display: flex;
    position: relative;
    gap: 1rem;
    margin-left: 48px;
    padding: 0;
    list-style: none;
    margin-left: auto;
    z-index: 2;
    float: right;
    order: 1;
}

.auth-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    line-height: 1;
    white-space: nowrap;
    text-align: center;
}

.auth-links a:hover {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

.btn:active, .primary-btn:active {
    transform: scale(0.96);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.auth-links .auth-btn {
    background: var(--primary-color);
    color: var(--background-color);
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    line-height: 1;
}

.auth-links .auth-btn:hover {
    background: #d4a23f; /* или: #ffc450; */
    color: var(--text-color);
    transform: translateY(-2px);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

/* VK */
.social-icons .vk {
    background-color: #4C75A3;
    transition: transform 0.5s;
}

.social-icons .vk:hover {
    background-color: #5B7FA6;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(76, 117, 163, 0.4);
}

/* Discord */
.social-icons .discord {
    background-color: #5865F2;
    transition: transform 0.5s;
}

.social-icons .discord:hover {
    background-color: #6D7AF2;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(88, 101, 242, 0.4);
}

/* YouTube */
.social-icons .youtube {
    background-color: #FF0000;
    transition: transform 0.5s;
}

.social-icons .youtube:hover {
    background-color: #FF1A1A;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
}

/* Мобильное меню */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

@media (max-width: 1024px) {
    .nav-links {
        gap: 25px;
    }

    nav a {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    header .container {
    padding: 0 20px;
    height: 80px;
    }

    .logo img {
        height: 40px;
        width: auto;
    }

    .logo-text {
        font-size: 20px;
    }

    .mobile-menu-btn {
    display: block;
    }

    nav {
        position: fixed;
        top: 60px;
        left: 0;
    width: 100%;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        padding: 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        flex-direction: column;
        gap: 20px;
    }

    nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links,
    .auth-links {
        flex-direction: column;
        gap: 20px;
    align-items: center;
        margin: 0;
    }

    nav a {
        font-size: 18px;
    }

    .auth-btn {
    width: 100%;
    text-align: center;
}
}

/* Основной контент */
main {
    padding-top: 100px;
    flex: 1 0 auto;
    position: relative;
    z-index: 1;
}

/* Главная страница */
.main-content {
    padding: 40px 0 60px;
    min-height: calc(100vh - 80px);
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
}

/* Hero section */
.hero {
    margin-right: 13%;
    margin-top: 10%;
    padding: 2rem 0;
    position: relative;
    z-index: 1;
    text-align: center;
    display: block;
    margin-bottom: 40vh;
}

.hero .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: block;
    flex-direction: initial;
    align-items: initial;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    text-shadow: 2px 2px 4px rgb(0, 0, 0);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Features section */
.features {
    padding: 0;
    padding-bottom: 10rem;
    position: relative;
    z-index: 1;
    margin-top: 20%;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

.feature-card {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    backdrop-filter: blur(2px);
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.6s cubic-bezier(.23,1.02,.32,1);
}
.feature-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-10px);
    transition: transform 0.3s ease;
}

/* Hover эффект только для анимированных блоков */
.feature-card.animate:hover {
    transform: translateY(-10px);
    transition: transform 0.3s ease;
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

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

.btn, .primary-btn {
    background: var(--primary-color, #e6b347);
    color: #222;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.btn:hover, .primary-btn:hover {
    background: #ffd36a;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}
/* Страница входа */
.auth-page {
    padding: 40px 0 60px;
    min-height: calc(100vh - 80px);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7));
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
}

/* Секция входа */
.login-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 60px - 60px - 80px);
    padding: 2rem 0;
}

/* --- Симметричный блок формы регистрации --- */
.auth-container {
    width: 360px !important;
    max-width: none !important;
    margin: 60px auto !important;
    padding: 30px !important;
    background: #111;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.7);
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
/* --- конец блока --- */

.auth-container h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.social-login p {
    color: var(--text-muted);
    margin: 20px 0;
    position: relative;
    text-align: center;
}

.social-login p::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border-color);
}
.social-login p span {
    background: #111; 
    padding: 0 10px;
    position: relative; 
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    font-size: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.social-btn:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
}

.social-btn.vk:hover {
    color: #4C75A3;
    border-color: #4C75A3;
}

.social-btn.google:hover {
    color: #DB4437;
    border-color: #DB4437;
}

.auth-footer {
    margin-top: 20px;
    text-align: center;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: #d4a23f;
}

/* Уведомления */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 5px;
    color: #fff;
    font-weight: 500;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3000;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.success {
    background: var(--success-color);
}

.notification.error {
    background: var(--error-color);
}

/* Подвал */
footer {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 1rem 0;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-section {
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 0;
}

.footer-policy-btn {
    width: 200px;
    min-width: 120px;
    max-width: 100%;
    height: 38px;
    padding: 0 16px;
    background: #222;
    color: #fff;
    border: 2px solid #c79c40;
    border-radius: 7px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s, color 0.2s, border 0.2s, box-shadow 0.2s;
    text-align: center;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer-policy-btn:hover {
    background: #e6b347;
    color: #222;
    border-color: #e6b347;
    box-shadow: 0 4px 16px rgba(230,179,71,0.15);
}
@media (max-width: 900px) {
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .footer-policy-btn {
        width: 95%;
    }
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Медиа запросы */
@media (max-width: 480px) {
    nav ul {
        gap: 10px;
    }

    nav a {
        font-size: 24px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .forum-header h2 {
        font-size: 24px;
    }

    .category-header h3 {
        font-size: 18px;
    }

    .topic-content h4 {
        font-size: 16px;
    }

    .topic-meta,
    .topic-stats {
        font-size: 12px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 14px;
}

.footer-section ul {
        gap: 12px;
    }

    .footer-section a {
        font-size: 18px;
        width: 32px;
        height: 32px;
    }
}

/* --- Оптимизация шапки для ноутбуков --- */
@media (max-width: 1400px) {
    .logo {
        left: 0;
        margin-right: 1rem;
    }
}
@media (max-width: 1024px) {
    .logo {
        left: 0;
        margin-right: 0.5rem;
    }
}

/* --- Футер: подпись над соц. сетями --- */
.footer-section .social-label {
    color: #fff;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
        text-align: left;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

#userBlock img {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

/* Политика конфиденциальности */
.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow: auto;
    color: #cdcdcd;
    z-index: 1001;
    border: 1px solid #e6b347;
    background-color: #101010fa;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
  }

.modal-overlay.blur {
    filter: blur(5px); /* Размытие фона */
    z-index: 1000;
}

  .modal .modal-content{
    margin: 0;
    padding: 0;
    border-radius: 0;
    max-width: 100%;
    max-height: 100%;
    position: relative;
    text-align: left;
    animation: slideDown 0.3s;
    z-index: 2;
  }

    .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 32px;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10000;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  .close-btn:hover {
    color: #e6b347;
    background: rgba(230, 179, 71, 0.2);
    border-color: #e6b347;
  }

  
.buttons {
    position: absolute;
    display: flex;
    text-align: right;
    justify-content: right;
    align-items: right;
}

.footer-policy-btn {
  padding: 25px 16px;
  background: #222;
  color: #fff;
  border: 2px solid #e6b347;
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  font-weight: 515;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.2s, color 0.2s, border 0.2s, box-shadow 0.2s scale 0.2s;
  text-align: center;
  margin-left: 10px;
  margin-right: 10px;
  margin-top: 15px;
  margin-bottom: 15px;
}
.footer-policy-btn:hover {
  background: #e6b347;
  color: #222;
  border: 2px solid #e6b347;
  font-size: 16px;
  scale: 1.1;
  box-shadow: 0 4px 16px rgba(230,179,71,0.15);
}
@media (max-width: 900px) {
  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .footer-policy-btn {
    width: 220px;
}
}

#mainContent.blurred {
    filter: blur(2px);
    width: 100%;
    height: 100%;
    position: relative;
  }
  #mainContent.blurred::after {
    content: "";
    position: relative;
    left: 0; top: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.35);
    z-index: 1001;
    pointer-events: none;
  }

/* Стили для блокировки скролла и размытия фона */
body.modal-open {
    overflow: hidden;
}

#page-content.blurred,
.video-background.blurred {
    filter: blur(5px) brightness(0.7);
    transition: filter 0.3s ease;
}

#page-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Удаляем старые стили */
#page-content, body.blurred, #page-content.blurred, .video-background.blurred {
    filter: none;
}
body.blurred::before {
    display: none;
}

/* Новый, более надежный метод размытия */
.modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 999;
}
.modal-backdrop.active {
    display: block;
}

body.modal-open {
    overflow: hidden;
}

.auth-container button[type="submit"] {
    display: block;
    margin: 2rem auto 0 auto;
    width: 100%;
    padding: 12px;
    background: #e6b347;
    color: #000;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.auth-container button[type="submit"]:hover {
    background: #d4a23f;
}

.auth-container button[type="submit"]:disabled {
    background: #666;
    cursor: not-allowed;
}

/* Fallback иконки для социальных сетей */
.fallback-icon {
    display: none;
    font-weight: bold;
    font-size: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.lang-switcher {
  margin-right: -90px;
  margin-left: 24px;
  order: 2;
  display: flex;
  align-items: center;
  z-index: 1001;
  position: relative;
}
.lang-btn {
  background: rgba(0, 0, 0, 0);
  color: #fff;
  padding: 0.5rem 1.1rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: bold;
  transition: background 0.2s, color 0.2s;
  height: 33px;
  min-width: 64px;
  border: none;
  box-shadow: none;
}
.lang-btn i.fas.fa-globe {
  color: #fff;
  font-size: 1.3em;
  margin-right: 8px;
}
.lang-btn i.fas.fa-caret-down {
  margin-left: 8px;
}
.lang-btn:hover, .lang-btn:focus {
  background: rgba(255, 255, 255, 0.089);
  color: #fff;
  box-shadow: 0 4px 16px rgba(230,179,71,0.15);
}
.lang-dropdown {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  right: auto;
  background: #23242a;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  min-width: 94px;
  width: max-content;
  padding: 0;
  margin: 0;
  list-style: none;
  z-index: 1002;
  border: 1px solid var(--border-color);
}
.lang-dropdown li {
  padding: 14px 0;
  cursor: pointer;
  color: var(--text-color);
  transition: background 0.2s, color 0.2s;
  font-size: 1rem;
  text-align: center;
}
.lang-dropdown li:hover {
  background: var(--primary-color);
  color: #23242a;
}
.lang-dropdown.show {
  display: block;
}
@media (max-width: 900px) {
  .lang-switcher {
    position: static;
    margin-left: 0;
    margin-top: 10px;
    transform: none;
    right: 0;
    top: auto;
  }
  .lang-btn {
    width: 100%;
    justify-content: center;
  }
  .lang-dropdown {
    left: 0;
    right: auto;
    min-width: 120px;
  }
}

/* --- Google reCAPTCHA шириной как input --- */
.g-recaptcha {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 auto 20px auto;
    display: flex;
    justify-content: center;
}
.g-recaptcha > div {
    width: 100% !important;
    min-width: 0 !important;
}
/* --- конец блока --- */

/* --- Одинаковая ширина input, reCAPTCHA и кнопки для формы регистрации --- */
.auth-container input,
.auth-container .g-recaptcha,
.auth-container button[type="submit"] {
    min-width: 304px;
    max-width: 304px;
    width: 100%;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
    display: block;
}
/* --- конец блока --- */

.rewards-table-wrapper {
    max-width: 850px;
    margin: 0 auto;
    overflow-x: auto;
}

.rewards-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #2b2b2b;
    border-radius: 6px;
    overflow: hidden;
}
.rewards-table th,
.rewards-table td {
    padding: 12px 16px;
    text-align: center;
    color: #fff;
}
.rewards-table th {
    background-color: #3b3b3b;
    font-weight: bold;
}
.rewards-table td img {
    height: 28px;
    vertical-align: middle;
    margin: 0 4px;
}

/* Убираем центрирование для .g-recaptcha внутри .auth-container */
.auth-container .g-recaptcha {
    justify-content: flex-start;
    margin: 0 0 20px 0;
}

/* Для кнопки убрать возможное центрирование и сделать отступ сверху */
.auth-container button[type="submit"] {
    margin-top: 10px;
}

/* Анимации для блоков feature */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

.footer-bottom-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    margin-bottom: 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
}
.footer-bottom-center .footer-support {
    margin-bottom: 2px;
}
.footer-bottom-center p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95em;
}

.footer-support {
    text-align: center;
    color: #b8b8b8;
    font-size: 0.93rem;
    letter-spacing: 0.01em;
    opacity: 0.85;
    margin-bottom: 2px;
    margin-top: 10px;
}
.footer-support .support-label {
    font-weight: 500;
    color: #e6b347;
    margin-right: 6px;
    font-size: 0.97em;
}
.footer-support .support-email {
    display: inline-block;
    color: #fff;
    border-radius: 6px;
    padding: 2px 8px;
    font-family: 'Consolas', monospace;
    cursor: pointer;
    font-size: 0.97em;
    background: none;
    transition: background 0.2s, color 0.2s;
    position: relative;
}
.footer-support .support-email:hover {
    background: #e6b347;
    color: #23242a;
}
.footer-support .support-email::after {
    content: '\f0c5';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 6px;
    font-size: 1em;
    color: #fff;
    opacity: 0.7;
    transition: color 0.2s;
}
.footer-support .support-email.copied {
    background: #28a745;
    color: #fff;
}
.footer-support .support-email.copied::after {
    content: '\2714';
    color: #fff;
}