* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
.header {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 1rem 0;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    color: #ff6b35;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.server-ip {
    background: linear-gradient(45deg, #ff6b35, #ff8e53);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-block;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(255, 107, 53, 0.3);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    border-radius: 5px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.nav-menu a:hover {
    background: rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
}

.nav-menu a i {
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 0.5rem;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.social-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.youtube { background: linear-gradient(45deg, #ff0000, #cc0000); }
.discord { background: linear-gradient(45deg, #7289da, #5b6eae); }
.telegram { background: linear-gradient(45deg, #0088cc, #006699); }
.vk { background: linear-gradient(45deg, #4a76a8, #3a5f8a); }

/* Основной контент */
main {
    background: white;
    min-height: calc(100vh - 200px);
    border-radius: 15px;
    margin: 30px auto;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* Герой секция */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(rgba(26, 26, 46, 0.05), rgba(22, 33, 62, 0.05));
    border-radius: 15px;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="%23ff6b35" opacity="0.05"/></svg>');
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 3rem;
    color: #1a1a2e;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Кнопки */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
    font-weight: 600;
    min-width: 200px;
}

.btn-primary {
    background: linear-gradient(45deg, #ff6b35, #ff8e53);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(45deg, #e55a2b, #ff7c40);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

.btn-secondary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #5a6fd8, #6a4090);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* Формы */
.auth-form, .application-form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.auth-form h2, .application-form h2 {
    text-align: center;
    color: #1a1a2e;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.password-input {
    position: relative;
}

.password-input input {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: #ff6b35;
}

/* Оповещения */
.alert {
    padding: 1.2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid transparent;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-error {
    background: linear-gradient(45deg, #fee, #fdd);
    color: #c33;
    border-left-color: #c33;
}

.alert-success {
    background: linear-gradient(45deg, #efe, #dfd);
    color: #3a3;
    border-left-color: #3a3;
}

.alert-info {
    background: linear-gradient(45deg, #e3f2fd, #d3e9fc);
    color: #1565c0;
    border-left-color: #1565c0;
}

/* Правила */
.rules {
    padding: 2rem 0;
}

.rules h2 {
    text-align: center;
    color: #1a1a2e;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.rules-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
}

.rule-category {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-top: 5px solid #ff6b35;
    transition: transform 0.3s;
}

.rule-category:hover {
    transform: translateY(-5px);
}

.rule-category h3 {
    color: #1a1a2e;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
}

.rule-category h3 i {
    color: #ff6b35;
}

.rules-list {
    list-style: none;
}

.rules-list li {
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rules-list li:before {
    content: '•';
    color: #ff6b35;
    font-size: 1.5rem;
}

.rules-list li:last-child {
    border-bottom: none;
}

/* Личный кабинет */
.dashboard {
    padding: 2rem 0;
}

.dashboard h2 {
    text-align: center;
    color: #1a1a2e;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.user-info, .applications {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.user-info h3, .applications h3 {
    color: #1a1a2e;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.info-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #ff6b35;
}

.info-label {
    display: block;
    font-weight: 600;
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.info-value {
    display: block;
    color: #1a1a2e;
    font-size: 1.2rem;
    font-weight: 500;
}

.application-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.application-card:hover {
    border-color: #ff6b35;
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.1);
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.app-header h4 {
    color: #1a1a2e;
    font-size: 1.3rem;
    margin: 0;
}

.status {
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: linear-gradient(45deg, #fff3cd, #ffeaa7);
    color: #856404;
}

.status-approved {
    background: linear-gradient(45deg, #d4edda, #c3e6cb);
    color: #155724;
}

.status-rejected {
    background: linear-gradient(45deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

.app-content p {
    margin-bottom: 0.8rem;
    color: #555;
}

.app-content strong {
    color: #1a1a2e;
    min-width: 150px;
    display: inline-block;
}

.app-photo {
    max-width: 300px;
    max-height: 300px;
    border-radius: 8px;
    margin-top: 1rem;
    border: 2px solid #e9ecef;
    padding: 5px;
    background: white;
}

.dashboard-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
}

/* Подвал */
.footer {
    background: linear-gradient(135deg, #0f0f1a 0%, #0a0a12 100%);
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: #ff6b35;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-section p {
    color: #aaa;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.server-ip-footer {
    color: white !important;
    font-size: 1.2rem;
    background: linear-gradient(45deg, #ff6b35, #ff8e53);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    display: inline-block;
    margin-top: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 1rem;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section a:hover {
    color: #ff6b35;
    transform: translateX(5px);
}

.footer-social {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.footer-social a {
    color: white;
    font-size: 1.8rem;
    transition: all 0.3s;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
}

.footer-social a:hover {
    color: white;
    transform: translateY(-5px) scale(1.1);
}

.footer-social .fa-youtube:hover { background: #ff0000; }
.footer-social .fa-discord:hover { background: #7289da; }
.footer-social .fa-telegram:hover { background: #0088cc; }
.footer-social .fa-vk:hover { background: #4a76a8; }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-bottom p:first-child {
    color: #aaa;
    margin-bottom: 0.5rem;
}


    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .rules-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    main {
        margin: 15px;
        padding: 1.5rem;
    }
    
    .auth-form, .application-form {
        padding: 1.5rem;
        margin: 1rem auto;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .app-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        justify-content: center;
        padding: 1rem;
    }
    
    .social-links {
        justify-content: center;
        width: 100%;
    }
    
}