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

body {
    background: #0a0a0f;
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: #fff;
    line-height: 1.5;
    overflow-x: hidden;
}

.bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, #0f1725, #02040c);
    z-index: -2;
}

.bg::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(#0f3460 1px, transparent 1px),
                      linear-gradient(90deg, #0f3460 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.08;
}

.glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    z-index: -1;
}
.g1 { width: 500px; height: 500px; background: #3b00cc; top: -150px; left: -150px; }
.g2 { width: 400px; height: 400px; background: #00ccaa; bottom: -100px; right: -100px; }

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

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 255, 204, 0.15);
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
}
.logo.fancy {
    font-family: 'Playfair Display', 'Segoe UI', cursive;
    font-style: italic;
    background: linear-gradient(135deg, #fff, #00ffcc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(0,255,204,0.3);
}

.nav {
    display: flex;
    gap: 25px;
}
.nav a {
    color: #a0a0b0;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}
.nav a:hover, .nav a.active {
    color: #00ffcc;
    text-shadow: 0 0 5px #00ffcc;
}

.btn-outline {
    background: transparent;
    border: 1px solid #4a4aff;
    padding: 8px 20px;
    border-radius: 30px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}
.btn-outline:hover {
    background: rgba(74, 74, 255, 0.1);
    border-color: #00ffcc;
}

.btn-primary {
    background: linear-gradient(135deg, #4a4aff, #7a2eff);
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}
.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(74, 74, 255, 0.5);
}

.burger {
    display: none;
    background: none;
    border: 1px solid #00ffcc;
    color: #00ffcc;
    font-size: 1.5rem;
    padding: 5px 12px;
    border-radius: 8px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: #0f0f18;
    border: 1px solid #00ffcc;
    border-radius: 16px;
    padding: 20px;
    margin: 10px 0;
}
.mobile-menu a {
    color: #a0a0b0;
    text-decoration: none;
    padding: 12px 0;
    cursor: pointer;
}
.mobile-menu.show {
    display: flex;
}

.social-selector {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 20px 0 30px;
    flex-wrap: wrap;
}

.social-btn {
    background: rgba(15, 15, 25, 0.7);
    border: 1px solid rgba(0, 255, 204, 0.3);
    padding: 10px 18px;
    border-radius: 30px;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.social-btn i {
    font-size: 1.1rem;
}
.social-btn:hover {
    border-color: #00ffcc;
    background: rgba(0, 255, 204, 0.1);
}
.social-btn.active {
    background: linear-gradient(135deg, #4a4aff, #7a2eff);
    border-color: #00ffcc;
}

.error-msg {
    color: #ff4444;
    margin: 10px 0;
    font-size: 0.85rem;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: #111118;
    border: 1px solid #00ffcc;
    border-radius: 20px;
    padding: 30px;
    width: 350px;
}
.modal-content input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    background: #1a1a2a;
    border: 1px solid #2a2a3a;
    border-radius: 8px;
    color: #fff;
}
.modal-content .close {
    float: right;
    font-size: 28px;
    cursor: pointer;
    color: #00ffcc;
}
.error {
    color: #ff4444;
    margin-top: 10px;
}
.code-display {
    font-size: 32px;
    font-weight: bold;
    color: #00ffcc;
    text-align: center;
    padding: 10px;
    background: #0a0a0f;
    border-radius: 8px;
    margin: 15px 0;
}

.section {
    display: none;
    padding: 40px 0;
    animation: fadeIn 0.5s ease;
}
.section.active-section {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero {
    display: flex;
    gap: 50px;
    padding: 20px 0 40px;
    flex-wrap: wrap;
}
.left { flex: 1.2; }
.right { flex: 0.9; }
.badge {
    display: inline-block;
    background: rgba(0, 255, 204, 0.1);
    border: 1px solid rgba(0, 255, 204, 0.3);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    color: #00ffcc;
}
h1 {
    font-size: 3rem;
    margin: 20px 0;
    line-height: 1.2;
}
.neon {
    background: linear-gradient(135deg, #00ffcc, #7a2eff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.input-box {
    display: flex;
    gap: 12px;
    background: #111118;
    border-radius: 50px;
    padding: 5px;
    border: 1px solid #2a2a3a;
    margin: 25px 0;
}
.input-box input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 14px 20px;
    color: #fff;
    outline: none;
}
.benefits {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}
.benefits span {
    color: #a0a0b0;
}

.terminal {
    background: #07070c;
    border-radius: 12px;
    border: 1px solid #2a2a3a;
}
.term-header {
    background: #111118;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #a0a0b0;
}
.dots { display: flex; gap: 8px; }
.dots span { width: 12px; height: 12px; border-radius: 50%; }
.dots span:nth-child(1) { background: #ff5f56; }
.dots span:nth-child(2) { background: #ffbd2e; }
.dots span:nth-child(3) { background: #27c93f; }
.status { color: #00ffcc; }
.term-body {
    padding: 20px;
    font-family: monospace;
    font-size: 0.8rem;
    color: #00ffcc;
    min-height: 280px;
    white-space: pre-wrap;
}
.term-body a {
    color: #00ffcc;
    text-decoration: underline;
    cursor: pointer;
}
.term-body a:hover {
    color: #fff;
}
.progress {
    background: #1a1a2a;
    border-radius: 10px;
    height: 6px;
    margin: 0 20px 15px;
}
.bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #00ffcc, #7a2eff);
    transition: width 0.3s;
}
.procent {
    text-align: right;
    font-size: 0.7rem;
    padding: 0 20px 20px;
    color: #a0a0b0;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 40px 0 20px;
}
.card {
    background: rgba(15, 15, 25, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(0, 255, 204, 0.1);
}
.card:hover {
    border-color: #00ffcc;
    transform: translateY(-3px);
}
.icon { font-size: 2.5rem; margin-bottom: 15px; }

.services-content {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 30px;
}
.service-text {
    flex: 2;
    line-height: 1.8;
    color: #a0a0b0;
}
.service-text p {
    margin-bottom: 20px;
}
.service-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
    background: rgba(15, 15, 25, 0.5);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 204, 0.2);
}
.stat-item {
    text-align: center;
}
.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #00ffcc;
}
.stat-label {
    font-size: 0.85rem;
    color: #a0a0b0;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px 0;
}
.review-item {
    background: #111118;
    border-radius: 12px;
    padding: 15px;
    border-left: 3px solid #00ffcc;
}
.review-name { font-weight: bold; color: #00ffcc; }
.review-text { margin-top: 8px; color: #a0a0b0; }
.review-date { font-size: 0.7rem; color: #606070; margin-top: 8px; }

.review-form-container {
    background: #111118;
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(0, 255, 204, 0.2);
}
.review-form-container h3 {
    margin-bottom: 15px;
    color: #00ffcc;
}
.review-form-container textarea {
    width: 100%;
    padding: 12px;
    background: #1a1a2a;
    border: 1px solid #2a2a3a;
    border-radius: 12px;
    color: #fff;
    resize: vertical;
}
.review-login-box {
    text-align: center;
    padding: 30px;
    background: #111118;
    border-radius: 16px;
    border: 1px solid rgba(0, 255, 204, 0.2);
}
.review-login-box i {
    font-size: 3rem;
    color: #00ffcc;
    margin-bottom: 15px;
}
.review-login-box p {
    margin-bottom: 15px;
}
.review-login-box button {
    margin: 0 5px;
}

.rules-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}
.rule-card {
    background: rgba(15, 15, 25, 0.5);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(0, 255, 204, 0.15);
    transition: 0.2s;
}
.rule-card:hover {
    border-color: #00ffcc;
    transform: translateY(-3px);
}
.rule-card h3 {
    color: #00ffcc;
    margin-bottom: 12px;
    font-size: 1.1rem;
}
.rule-card p {
    color: #a0a0b0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.support-contacts {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin: 30px 0;
}
.support-card {
    background: #111118;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    flex: 1;
    min-width: 200px;
    border: 1px solid rgba(0, 255, 204, 0.2);
}
.support-icon { font-size: 2rem; display: block; margin-bottom: 10px; color: #00ffcc; }
.support-card a { color: #00ffcc; text-decoration: none; }

.my-hacks-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}
.my-hacks-list .empty-list {
    text-align: center;
    color: #606070;
    padding: 40px;
}

.footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(0, 255, 204, 0.1);
    color: #606070;
}

.to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00ffcc, #7a2eff);
    border: none;
    color: #0a0a0f;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    z-index: 100;
}
.to-top:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px #00ffcc;
}

html {
    scroll-behavior: smooth;
}
.nav-link {
    cursor: pointer;
}

@media (max-width: 900px) {
    .nav, #authButtons, #userPanel { display: none; }
    .burger { display: block; }
    .to-top { bottom: 20px; right: 20px; }
}
@media (max-width: 780px) {
    h1 { font-size: 2rem; }
    .hero { flex-direction: column; text-align: center; }
    .benefits { justify-content: center; }
}