/* ====================================================
   СБРОС И ОСНОВНЫЕ НАСТРОЙКИ
==================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
    min-height: 100vh;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ====================================================
   АНИМИРОВАННЫЙ ФОН
==================================================== */
.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -2;
    animation: gridMove 30s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.floating-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s infinite alternate;
}

.orb-1 {
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: #00ffff;
    animation-duration: 15s;
}

.orb-2 {
    bottom: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: #ff00ff;
    animation-duration: 20s;
    animation-delay: -5s;
}

.orb-3 {
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: #ffff00;
    animation-duration: 25s;
    animation-delay: -10s;
    transform: translate(-50%, -50%);
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 100px) scale(1.2); }
}

/* ====================================================
   ШАПКА
==================================================== */
.neon-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
    transition: all 0.3s;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: inherit;
}

.logo i {
    color: #00ffff;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { filter: drop-shadow(0 0 5px #00ffff); }
    50% { filter: drop-shadow(0 0 20px #00ffff); }
    100% { filter: drop-shadow(0 0 5px #00ffff); }
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: inherit;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-nav a:hover {
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ====================================================
   НЕОНОВЫЕ КНОПКИ
==================================================== */
.neon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid #00ffff;
    background: transparent;
    color: #00ffff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    font-size: 14px;
}

.neon-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.neon-button:hover::before {
    left: 100%;
}

.neon-button:hover {
    background: #00ffff;
    color: #000;
    box-shadow: 0 0 20px #00ffff;
    transform: translateY(-2px);
}

.neon-button.small {
    padding: 8px 16px;
    font-size: 13px;
}

.neon-button.large {
    padding: 15px 30px;
    font-size: 16px;
}

.neon-button.primary {
    border-color: #ff00ff;
    color: #ff00ff;
}

.neon-button.primary:hover {
    background: #ff00ff;
    color: #000;
    box-shadow: 0 0 20px #ff00ff;
}

.neon-button.full-width {
    width: 100%;
}

/* ====================================================
   ПРОФИЛЬНОЕ МЕНЮ
==================================================== */
.profile-menu {
    position: relative;
    z-index: 1001;
}

.profile-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    padding: 5px 15px 5px 10px;
    border-radius: 30px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    transition: all 0.3s;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.profile-link:hover {
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    background: rgba(0, 255, 255, 0.1);
}

.profile-link i {
    transition: transform 0.3s;
}

.profile-menu.active .profile-link i {
    transform: rotate(180deg);
}

.mini-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #00ffff;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 220px;
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    padding: 8px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 255, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
}

.profile-menu.active .profile-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: rgba(20, 20, 30, 0.95);
    border-left: 1px solid rgba(0, 255, 255, 0.3);
    border-top: 1px solid rgba(0, 255, 255, 0.3);
    transform: rotate(45deg);
    backdrop-filter: blur(10px);
}

.profile-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    font-size: 14px;
}

.profile-dropdown a:hover {
    background: rgba(0, 255, 255, 0.15);
    color: #00ffff;
    padding-left: 25px;
}

.profile-dropdown a i {
    width: 20px;
    text-align: center;
    color: #00ffff;
}

.profile-dropdown .logout-link {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 5px;
    padding-top: 15px;
}

.profile-dropdown .logout-link:hover {
    color: #ff4444;
}

.profile-dropdown .logout-link:hover i {
    color: #ff4444;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

/* ====================================================
   HERO СЕКЦИЯ
==================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.glitch-text {
    font-size: 48px;
    font-weight: bold;
    position: relative;
    animation: glitch 3s infinite;
    margin-bottom: 20px;
}

@keyframes glitch {
    0%, 100% { text-shadow: 2px 2px 0 #00ffff, -2px -2px 0 #ff00ff; }
    25% { text-shadow: -2px 2px 0 #00ffff, 2px -2px 0 #ff00ff; }
    50% { text-shadow: 2px -2px 0 #00ffff, -2px 2px 0 #ff00ff; }
    75% { text-shadow: -2px -2px 0 #00ffff, 2px 2px 0 #ff00ff; }
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 30px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.stat-badge i {
    color: #00ffff;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ====================================================
   СЕКЦИИ
==================================================== */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-title i {
    color: #00ffff;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    opacity: 0.8;
    margin-bottom: 50px;
}

/* ====================================================
   КАРТОЧКИ УСЛУГ
==================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(20, 20, 30, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.service-card:hover::before {
    transform: translateX(100%);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: #00ffff;
    box-shadow: 0 10px 40px rgba(0, 255, 255, 0.2);
}

.card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(0, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 1px solid #00ffff;
    transition: all 0.5s;
}

.service-card:hover .card-icon {
    transform: rotate(360deg);
    background: #00ffff;
}

.card-icon i {
    font-size: 40px;
    color: #00ffff;
    transition: all 0.3s;
}

.service-card:hover .card-icon i {
    color: #000;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.service-card p {
    opacity: 0.8;
    margin-bottom: 20px;
    line-height: 1.8;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 28px;
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* ====================================================
   ФУТЕР
==================================================== */
.neon-footer {
    border-top: 1px solid rgba(0, 255, 255, 0.1);
    padding: 60px 0 20px;
    margin-top: 60px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.footer-logo i {
    color: #00ffff;
}

.contact-telegram a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border: 1px solid #00ffff;
    border-radius: 30px;
    color: inherit;
    text-decoration: none;
    transition: all 0.3s;
    margin-top: 15px;
}

.contact-telegram a:hover {
    background: #00ffff;
    color: #000;
    box-shadow: 0 0 20px #00ffff;
}

.footer-links h4 {
    margin-bottom: 20px;
    color: #00ffff;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s;
}

.footer-links a:hover {
    opacity: 1;
    color: #00ffff;
    padding-left: 5px;
}

.footer-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

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

/* ====================================================
   АВТОРИЗАЦИЯ (LOGIN/REGISTER)
==================================================== */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
}

.auth-card {
    max-width: 400px;
    width: 100%;
    background: rgba(20, 20, 30, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    animation: slideUp 0.5s;
}

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

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header i {
    font-size: 50px;
    color: #00ffff;
    margin-bottom: 20px;
}

.auth-header h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    opacity: 0.8;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 10px;
    color: inherit;
    font-size: 16px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s;
}

.toggle-password:hover {
    opacity: 1;
    color: #00ffff;
}

.password-strength-meter {
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin-top: 5px;
    overflow: hidden;
}

.password-strength {
    height: 100%;
    width: 0;
    transition: all 0.3s;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-footer a {
    color: #00ffff;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.captcha-group .captcha-question {
    font-size: 20px;
    font-weight: bold;
    color: #00ffff;
    margin-bottom: 10px;
}

/* ====================================================
   АЛЕРТЫ
==================================================== */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s;
}

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

.alert-error {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff4444;
    color: #ff8888;
}

.alert-success {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff88;
    color: #88ff88;
}

/* ====================================================
   ПРОФИЛЬ
==================================================== */
.profile-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 100px 20px;
}

.profile-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 50px;
    margin-bottom: 50px;
    align-items: center;
}

.profile-avatar-section {
    text-align: center;
}

.avatar-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #00ffff;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
    object-fit: cover;
}

.change-avatar-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #00ffff;
    border: none;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.change-avatar-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px #00ffff;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-card {
    text-align: center;
    padding: 20px;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 15px;
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: #00ffff;
    transform: translateY(-5px);
}

.stat-card i {
    font-size: 30px;
    color: #00ffff;
    margin-bottom: 10px;
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: #00ffff;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
}

.profile-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.profile-info,
.profile-achievements {
    background: rgba(20, 20, 30, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
}

.profile-info h3,
.profile-achievements h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #00ffff;
}

.achievements-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s;
}

.achievement-item:hover {
    transform: translateX(5px);
    background: rgba(0, 255, 255, 0.1);
}

.achievement-item i {
    font-size: 24px;
    color: gold;
}

.achievement-item h4 {
    margin-bottom: 5px;
}

.achievement-item p {
    font-size: 12px;
    opacity: 0.6;
}

.no-data {
    text-align: center;
    opacity: 0.6;
    padding: 30px;
}

/* ====================================================
   ПОЛЬЗОВАТЕЛИ (СПИСОК)
==================================================== */
.users-page {
    padding: 100px 0;
}

.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.user-card {
    background: rgba(20, 20, 30, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

.user-card:hover {
    transform: translateY(-5px);
    border-color: #00ffff;
    box-shadow: 0 10px 40px rgba(0, 255, 255, 0.2);
}

.user-rank {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #00ffff;
}

.user-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #00ffff;
    object-fit: cover;
}

.user-card h3 a {
    color: inherit;
    text-decoration: none;
}

.user-card h3 a:hover {
    color: #00ffff;
}

.user-stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 14px;
}

.user-stats i {
    color: #00ffff;
}

/* ====================================================
   СТАТИЧЕСКИЕ СТРАНИЦЫ (ПОЛИТИКА, 404)
==================================================== */
.static-page {
    padding: 100px 0;
}

.static-content {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(20, 20, 30, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
}

.static-content h2 {
    color: #00ffff;
    margin: 30px 0 15px;
}

.static-content h2:first-of-type {
    margin-top: 0;
}

.static-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.error-content i {
    font-size: 80px;
    color: #00ffff;
    margin-bottom: 20px;
}

.error-content h1 {
    font-size: 120px;
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    line-height: 1;
}

.error-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.error-content p {
    margin-bottom: 30px;
    opacity: 0.8;
}

/* ====================================================
   МОДАЛЬНОЕ ОКНО
==================================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow-y: auto;
    backdrop-filter: blur(5px);
}

.modal-content {
    max-width: 600px;
    margin: 50px auto;
    background: rgba(20, 20, 30, 0.95);
    border: 1px solid #00ffff;
    border-radius: 20px;
    overflow: hidden;
    animation: modalSlide 0.3s;
}

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

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 24px;
    color: #00ffff;
}

.close-modal {
    font-size: 30px;
    cursor: pointer;
    transition: all 0.3s;
}

.close-modal:hover {
    color: #00ffff;
    transform: scale(1.1);
}

.modal-body {
    padding: 30px;
}

/* ====================================================
   АДАПТИВНОСТЬ
==================================================== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .hero-stats {
        flex-direction: column;
    }
    
    .glitch-text {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .profile-header,
    .profile-content {
        grid-template-columns: 1fr;
    }
    
    .profile-stats {
        order: -1;
    }
    
    .users-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 20px;
    }
}


















/* Стили для страницы тестов */
.tests-page {
    padding: 100px 0;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.tests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.test-card {
    background: rgba(20, 20, 30, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.test-card:hover {
    transform: translateY(-10px);
    border-color: #00ffff;
    box-shadow: 0 10px 40px rgba(0, 255, 255, 0.2);
}

.test-card-header {
    padding: 25px 25px 0 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.test-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #00ffff;
}

.test-icon i {
    font-size: 30px;
    color: #00ffff;
}

.test-difficulty {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.test-difficulty.easy {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
}

.test-difficulty.medium {
    background: rgba(255, 170, 0, 0.2);
    color: #ffaa00;
}

.test-difficulty.hard {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
}

.test-difficulty.expert {
    background: rgba(170, 0, 255, 0.2);
    color: #aa00ff;
}

.test-card-body {
    padding: 20px 25px;
    flex: 1;
}

.test-title {
    font-size: 22px;
    margin-bottom: 10px;
    color: #00ffff;
}

.test-description {
    opacity: 0.8;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 14px;
}

.test-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.test-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 10px;
    border-radius: 20px;
}

.test-meta-item i {
    color: #00ffff;
}

.test-status {
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.test-status.passed {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    border: 1px solid #00ff88;
}

.test-status.available {
    background: rgba(0, 255, 255, 0.1);
    color: #00ffff;
    border: 1px solid #00ffff;
}

.test-card-footer {
    padding: 20px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Стили для прохождения теста */
.test-take-page {
    padding: 100px 0;
}

.test-header {
    text-align: center;
    margin-bottom: 40px;
}

.test-progress-container {
    max-width: 600px;
    margin: 0 auto 40px;
}

.test-progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.test-progress-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.test-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ffff, #ff00ff);
    transition: width 0.3s;
}

.test-question {
    max-width: 700px;
    margin: 0 auto 30px;
}

.question-text {
    font-size: 22px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.question-image {
    margin: 20px 0;
    text-align: center;
}

.question-image img {
    max-width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.answers-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px 0;
}

.answer-option {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.answer-option:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: #00ffff;
    transform: translateX(5px);
}

.answer-option input[type="radio"] {
    margin-right: 15px;
    width: 18px;
    height: 18px;
    accent-color: #00ffff;
}

.answer-text {
    font-size: 16px;
    line-height: 1.5;
}

.test-navigation {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

/* Стили для квестов */
.quests-page {
    padding: 100px 0;
}

.quests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.quest-card {
    background: rgba(20, 20, 30, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.quest-card:hover {
    transform: translateY(-10px);
    border-color: #00ffff;
    box-shadow: 0 10px 40px rgba(0, 255, 255, 0.2);
}

.quest-card.easy {
    border-left: 4px solid #00ff88;
}

.quest-card.medium {
    border-left: 4px solid #ffaa00;
}

.quest-card.hard {
    border-left: 4px solid #ff4444;
}

.quest-card.expert {
    border-left: 4px solid #aa00ff;
}

.quest-card-header {
    padding: 25px 25px 0 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quest-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #00ffff;
}

.quest-icon i {
    font-size: 30px;
    color: #00ffff;
}

.quest-difficulty {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.quest-difficulty.easy {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
}

.quest-difficulty.medium {
    background: rgba(255, 170, 0, 0.2);
    color: #ffaa00;
}

.quest-difficulty.hard {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
}

.quest-difficulty.expert {
    background: rgba(170, 0, 255, 0.2);
    color: #aa00ff;
}

.quest-card-body {
    padding: 20px 25px;
    flex: 1;
}

.quest-title {
    font-size: 22px;
    margin-bottom: 10px;
    color: #00ffff;
}

.quest-description {
    opacity: 0.8;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 14px;
}

.quest-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.quest-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 10px;
    border-radius: 20px;
}

.quest-meta-item i {
    color: #00ffff;
}

.quest-reward {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid gold;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quest-reward i {
    color: gold;
}

.quest-progress-indicator {
    margin: 15px 0;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 5px;
}

.quest-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 14px;
}

.quest-status.completed {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    border: 1px solid #00ff88;
}

.quest-card-footer {
    padding: 20px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Стили для последних статей на главной */
.recent-posts-section {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.2);
}

.recent-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .recent-posts-grid {
        grid-template-columns: 1fr;
    }
}

.recent-post-card {
    background: rgba(20, 20, 30, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
}

.recent-post-card:hover {
    transform: translateY(-5px);
    border-color: #00ffff;
    box-shadow: 0 10px 40px rgba(0, 255, 255, 0.2);
}

.recent-post-image {
    height: 200px;
    overflow: hidden;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.recent-post-card:hover .recent-post-image img {
    transform: scale(1.05);
}

.recent-post-content {
    padding: 25px;
}

.recent-post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
}

.recent-post-category {
    padding: 3px 10px;
    border: 1px solid;
    border-radius: 20px;
    font-size: 12px;
}

.recent-post-date {
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 5px;
}

.recent-post-title {
    font-size: 20px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.recent-post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.recent-post-title a:hover {
    color: #00ffff;
}

.recent-post-excerpt {
    opacity: 0.8;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.8;
}

.recent-post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recent-post-author {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    opacity: 0.7;
}

.view-all-posts {
    text-align: center;
    margin-top: 20px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(20, 20, 30, 0.5);
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 255, 0.1);
}

.empty-state i {
    font-size: 60px;
    color: #00ffff;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.empty-state p {
    opacity: 0.7;
}









