:root {
    --bg-dark: #0f0f13;
    --bg-card: #1a1a20;
    --primary: #7d5fff; /* Неоновый фиолетовый */
    --primary-hover: #6c4af5;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --accent: #ff4757;
    --glass: rgba(255, 255, 255, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

h1, h2, h3, .logo { font-family: 'Rajdhani', sans-serif; text-transform: uppercase; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Navbar */
.navbar {
    padding: 20px 0;
    position: absolute;
    width: 100%;
    z-index: 10;
    background: linear-gradient(to bottom, rgba(15,15,19,0.9), transparent);
}
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--text-main); text-decoration: none; letter-spacing: 2px; }
.nav-links a { margin-left: 20px; color: var(--text-muted); text-decoration: none; transition: 0.3s; }
.nav-links a:hover { color: var(--primary); }

/* Hero Section */
.hero {
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('../img/bg.jpg') no-repeat center center/cover;
    position: relative;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(15,15,19,0.4), var(--bg-dark));
}
.hero-content { position: relative; z-index: 2; }
.hero h1 { font-size: 4rem; margin-bottom: 1rem; line-height: 1.1; }
.text-gradient {
    background: linear-gradient(45deg, var(--primary), #2ed573);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.badge { background: var(--glass); padding: 5px 15px; border-radius: 20px; font-size: 0.9rem; border: 1px solid var(--primary); }

/* IP Copy */
.ip-container {
    background: var(--glass);
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    border-radius: 10px;
    margin: 2rem 0;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.3s;
    position: relative;
}
.ip-container:hover { border-color: var(--primary); transform: translateY(-2px); }
.ip-container i { margin-left: 10px; color: var(--primary); }
.tooltip {
    position: absolute;
    bottom: -40px; left: 50%; transform: translateX(-50%);
    background: var(--primary); padding: 5px 10px; border-radius: 5px;
    font-size: 0.8rem; opacity: 0; transition: 0.3s; pointer-events: none;
}
.ip-container.copied .tooltip { opacity: 1; bottom: -50px; }

/* Buttons */
.btn { display: inline-block; padding: 12px 30px; border-radius: 5px; text-decoration: none; font-weight: 600; transition: 0.3s; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 0 15px rgba(125, 95, 255, 0.4); }
.btn-primary:hover { background: var(--primary-hover); box-shadow: 0 0 25px rgba(125, 95, 255, 0.6); }
.btn-outline { border: 1px solid rgba(255,255,255,0.2); color: #fff; margin-left: 15px; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.05); }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-bottom: 5rem; }
.feature-card {
    background: var(--bg-card); padding: 30px; border-radius: 15px;
    border-top: 2px solid transparent; transition: 0.3s;
}
.feature-card:hover { border-top-color: var(--primary); transform: translateY(-5px); }
.feature-card h3 { color: var(--primary); margin-bottom: 10px; font-size: 1.5rem; }

/* Downloads */
.download-section { text-align: center; margin-bottom: 5rem; }
.download-grid { display: flex; justify-content: center; gap: 30px; margin-top: 30px; flex-wrap: wrap; }
.download-card {
    background: var(--bg-card); padding: 40px; border-radius: 15px; width: 300px;
    border: 1px solid rgba(255,255,255,0.05); transition: 0.3s;
}
.download-card:hover { border-color: var(--primary); }
.download-card .icon { font-size: 3rem; margin-bottom: 20px; color: var(--text-muted); }
.pirate:hover .icon { color: var(--accent); }
.license:hover .icon { color: #2ed573; }
.btn-download { display: block; margin-top: 20px; background: rgba(255,255,255,0.1); color: #fff; }
.btn-download:hover { background: var(--primary); }

/* Rules Page */
.page-content {
    padding-top: 140px !important;
}
.rule-item { background: var(--bg-card); padding: 20px; margin-bottom: 20px; border-radius: 10px; border-left: 4px solid var(--primary); }

/* Footer */
footer { background: #000; padding: 40px 0; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; }
.socials a { color: var(--text-muted); margin-left: 20px; text-decoration: none; }
.socials a:hover { color: #fff; }
.disabled { cursor: not-allowed; opacity: 0.5; }

/* Mobile */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .nav-links { display: none; } /* Можно добавить бургер-меню */
    .footer-content { flex-direction: column; text-align: center; gap: 20px; }
    .socials a { margin: 0 10px; }
}

/* Auth & Forms */
.auth-card {
    background: var(--bg-card); padding: 40px; border-radius: 15px; width: 100%; max-width: 400px;
    border: 1px solid rgba(255,255,255,0.05);
}
.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; margin-bottom: 8px; color: var(--text-muted); font-size: 0.9rem; }
input, textarea {
    width: 100%; padding: 12px; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1);
    color: #fff; border-radius: 5px; font-family: 'Inter', sans-serif;
}
input:focus, textarea:focus { border-color: var(--primary); outline: none; }
.auth-buttons { display: flex; gap: 10px; margin-top: 20px; }
.auth-buttons .btn { flex: 1; text-align: center; margin: 0; padding: 10px 0; cursor: pointer; border:none;}


/* Вкладки переключения (Login / Register) */
.auth-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 15px;
    color: var(--text-muted);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    color: #fff;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.full-width {
    width: 100%;
    margin-top: 10px;
}

/* Application Form */
.application-form-container { background: var(--bg-card); padding: 30px; border-radius: 15px; }
.input-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }

/* Status Cards */
.status-card { text-align: center; padding: 50px; border-radius: 15px; background: var(--bg-card); margin-top: 30px; }
.status-card .icon { font-size: 4rem; margin-bottom: 20px; }
.status-pending .icon { color: #f1c40f; } /* Желтый */
.status-approved .icon { color: #2ecc71; } /* Зеленый */
.status-rejected .icon { color: #e74c3c; } /* Красный */
.highlight { color: var(--primary); font-weight: bold; font-size: 1.2rem; }

/* Admin Panel */
.apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 30px; }
.app-card { background: #232329; padding: 20px; border-radius: 10px; display: flex; flex-direction: column; }
.app-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; }
.age-badge { background: #333; padding: 2px 8px; border-radius: 4px; font-size: 0.8rem; }
.discord-tag { color: #7289da; font-size: 0.9rem; }
.app-body { margin-bottom: 20px; flex-grow: 1; }
.app-body strong { display: block; color: var(--primary); margin-top: 10px; font-size: 0.9rem; }
.app-body p { font-size: 0.9rem; color: #ccc; }
.app-actions { display: flex; gap: 10px; }
.btn-sm { padding: 8px 15px; font-size: 0.9rem; text-align: center; flex: 1; }
.alert { padding: 10px; background: rgba(231, 76, 60, 0.2); border: 1px solid #e74c3c; color: #e74c3c; border-radius: 5px; margin-bottom: 15px; text-align: center;}

/* Rules Page Enhancements */
.rules-header { text-align: center; margin-bottom: 3rem; }
.warning-box {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid var(--accent);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 800px;
    margin: 2rem auto;
}
.warning-box i { color: var(--accent); font-size: 1.5rem; }

.rules-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.rules-section.wide { grid-column: span 2; }

.section-title { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; color: var(--primary); }
.section-title i { font-size: 1.8rem; }

.rule-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    display: flex;
    gap: 20px;
    border: 1px solid rgba(255,255,255,0.03);
    transition: 0.3s;
}
.rule-card:hover { border-color: var(--primary); transform: translateX(5px); }
.rule-num {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.2rem;
    min-width: 40px;
}

.punishment {
    display: block;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #ff4757;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.note-box {
    background: rgba(125, 95, 255, 0.1);
    border-left: 4px solid var(--primary);
    padding: 15px;
    font-size: 0.9rem;
    margin-top: 20px;
}

.formula {
    background: #000;
    padding: 2px 8px;
    border-radius: 4px;
    color: #2ed573;
    font-family: monospace;
}

.timeline-rules { border-left: 2px solid var(--primary); padding-left: 20px; margin-left: 10px; }
.timeline-item { position: relative; margin-bottom: 20px; }
.timeline-item::before {
    content: ''; position: absolute; left: -27px; top: 5px;
    width: 12px; height: 12px; border-radius: 50%; background: var(--primary);
}
.timeline-item .time { font-weight: 700; color: var(--primary); display: block; }

@media (max-width: 900px) {
    .rules-grid { grid-template-columns: 1fr; }
    .rules-section.wide { grid-column: span 1; }
}
/* Уведомление на странице авторизации */
.info-notice {
    background: rgba(125, 95, 255, 0.1);
    border-left: 4px solid var(--primary);
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.notice-icon { font-size: 1.5rem; color: var(--primary); }
.notice-text h4 { margin: 0; font-size: 1rem; color: #fff; }
.notice-text p { margin: 5px 0 0; font-size: 0.85rem; color: var(--text-muted); line-height: 1.3; }

/* Кабинет */
.dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.user-highlight { color: var(--primary); font-family: 'Rajdhani', sans-serif; }
.logout-link { color: var(--accent); text-decoration: none; font-size: 0.9rem; transition: 0.3s; }
.logout-link:hover { opacity: 0.8; }

/* Карточка статуса V2 */
.status-card-v2 {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 30px;
    border-radius: 12px;
    background: var(--bg-card);
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.05);
}
.status-icon { font-size: 2.5rem; }
.status-info h3 { margin: 0; font-size: 1.4rem; }
.status-info p { margin: 5px 0 0; color: var(--text-muted); }

.status-pending { border-left: 5px solid #f1c40f; }
.status-pending .status-icon, .status-pending span { color: #f1c40f; }

.status-approved { border-left: 5px solid #2ecc71; }
.status-approved .status-icon, .status-approved span { color: #2ecc71; }

.status-rejected { border-left: 5px solid #e74c3c; }
.status-rejected .status-icon, .status-rejected span { color: #e74c3c; }

/* Просмотр анкеты */
.my-application-view { background: var(--bg-card); border-radius: 12px; overflow: hidden; }
.view-header { background: rgba(255,255,255,0.03); padding: 15px 25px; display: flex; justify-content: space-between; align-items: center; }
.view-content { padding: 25px; }
.view-item { margin-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 10px; }
.view-item strong { color: var(--primary); display: block; margin-bottom: 5px; font-size: 0.9rem; }
.view-item p { color: #eee; font-size: 0.95rem; }

.join-info { background: linear-gradient(90deg, #2ecc7133, transparent); padding: 20px; border-radius: 10px; margin-top: 20px; border: 1px solid #2ecc7155; text-align: center; }