* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #0a0a1a; color: #e0e0e0; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.highlight { color: #6c63ff; }

.btn { display: inline-block; padding: 10px 24px; border-radius: 8px; font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: all 0.3s ease; border: none; text-align: center; }
.btn-primary { background: #6c63ff; color: #fff; }
.btn-primary:hover { background: #5a52e0; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(108, 99, 255, 0.3); }
.btn-outline { background: transparent; color: #fff; border: 2px solid #6c63ff; }
.btn-outline:hover { background: #6c63ff; transform: translateY(-2px); }
.btn-large { padding: 14px 36px; font-size: 1.05rem; }
.btn-sm { padding: 4px 12px; font-size: 0.8rem; }
.btn-danger { background: #e74c3c; color: #fff; }
.btn-danger:hover { background: #c0392b; }
.btn-success { background: #2ecc71; color: #fff; }
.btn-success:hover { background: #27ae60; }
.btn-warning { background: #f39c12; color: #fff; }
.btn-warning:hover { background: #e67e22; }

header { padding: 18px 0; border-bottom: 1px solid rgba(108, 99, 255, 0.15); position: sticky; top: 0; background: rgba(10, 10, 26, 0.92); backdrop-filter: blur(10px); z-index: 100; }
.nav-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: 700; }
.logo-icon { font-size: 1.8rem; }
.logo-text { color: #fff; }
.logo-text .highlight { color: #6c63ff; }
nav ul { display: flex; gap: 30px; }
nav ul li a { color: #aaa; transition: color 0.3s; font-weight: 500; }
nav ul li a:hover, nav ul li a.active { color: #fff; }
.auth-buttons { display: flex; gap: 10px; }

.hero { padding: 80px 0 60px; background: linear-gradient(135deg, #0a0a1a 0%, #14142e 100%); }
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.hero-text .badge { display: inline-block; background: rgba(108, 99, 255, 0.15); color: #6c63ff; padding: 6px 16px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; margin-bottom: 20px; border: 1px solid rgba(108, 99, 255, 0.2); }
.hero-text h1 { font-size: 3.2rem; font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.hero-text p { color: #aaa; font-size: 1.1rem; max-width: 90%; margin-bottom: 30px; }
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; background: rgba(255, 255, 255, 0.03); padding: 40px; border-radius: 16px; border: 1px solid rgba(108, 99, 255, 0.1); }
.stat { text-align: center; }
.stat-number { display: block; font-size: 2.8rem; font-weight: 800; color: #6c63ff; }
.stat-label { color: #888; font-size: 0.9rem; margin-top: 4px; }

.scripts { padding: 80px 0; background: #0a0a1a; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.5rem; font-weight: 700; }
.section-header p { color: #aaa; margin-top: 10px; font-size: 1.05rem; }
.scripts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }
.script-card { background: #14142e; border-radius: 12px; padding: 25px; border: 1px solid #1f1f3f; transition: all 0.3s ease; }
.script-card:hover { transform: translateY(-4px); border-color: #6c63ff; box-shadow: 0 8px 30px rgba(108, 99, 255, 0.1); }
.script-card .name { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.script-card .category { color: #6c63ff; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.script-card .description { color: #aaa; font-size: 0.9rem; margin: 12px 0; }
.script-card .meta { display: flex; justify-content: space-between; color: #666; font-size: 0.8rem; margin-bottom: 15px; }
.script-card .btn { width: 100%; }

.about { padding: 80px 0; background: #0f0f20; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
.about-card { text-align: center; padding: 30px 20px; background: #14142e; border-radius: 12px; border: 1px solid #1f1f3f; transition: all 0.3s; }
.about-card:hover { border-color: #6c63ff; transform: translateY(-4px); }
.about-card .about-icon { font-size: 2.8rem; margin-bottom: 15px; }
.about-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.about-card p { color: #aaa; font-size: 0.95rem; }

.contact { padding: 80px 0; background: #0a0a1a; }
.contact-content { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info h3 { font-size: 1.6rem; margin-bottom: 15px; }
.contact-info p { color: #aaa; margin-bottom: 25px; }
.social-links { display: flex; flex-wrap: wrap; gap: 12px; }
.social-link { background: #14142e; padding: 10px 20px; border-radius: 8px; border: 1px solid #1f1f3f; transition: all 0.3s; font-weight: 500; }
.social-link:hover { border-color: #6c63ff; color: #6c63ff; }
.contact-form { display: flex; flex-direction: column; gap: 15px; }
.contact-form input, .contact-form textarea { padding: 12px 16px; background: #14142e; border: 1px solid #1f1f3f; border-radius: 8px; color: #fff; font-size: 1rem; font-family: inherit; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: #6c63ff; }
.contact-form textarea { resize: vertical; }

footer { padding: 40px 0; border-top: 1px solid rgba(108, 99, 255, 0.1); background: #0a0a1a; }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-brand .logo-text { font-size: 1.2rem; }
.footer-brand p { color: #666; font-size: 0.85rem; margin-top: 4px; }
.footer-links { display: flex; gap: 25px; }
.footer-links a { color: #888; transition: color 0.3s; }
.footer-links a:hover { color: #fff; }
.footer-copy p { color: #555; font-size: 0.85rem; }

.modal { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(6px); align-items: center; justify-content: center; z-index: 200; }
.modal.active { display: flex; }
.modal-content { background: #14142e; padding: 40px; border-radius: 16px; max-width: 420px; width: 90%; position: relative; border: 1px solid #2a2a4a; }
.modal-close { position: absolute; top: 15px; right: 20px; font-size: 1.8rem; cursor: pointer; color: #888; transition: color 0.3s; }
.modal-close:hover { color: #fff; }
.modal-body h2 { margin-bottom: 20px; }
.modal-body form { display: flex; flex-direction: column; gap: 15px; }
.modal-body input { padding: 12px 16px; background: #0f0f1a; border: 1px solid #2a2a4a; border-radius: 8px; color: #fff; font-size: 1rem; }
.modal-body input:focus { outline: none; border-color: #6c63ff; }
.modal-switch { margin-top: 15px; text-align: center; font-size: 0.9rem; color: #888; }
.modal-switch a { color: #6c63ff; font-weight: 600; }
.modal-switch a:hover { text-decoration: underline; }

@media (max-width: 992px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-text p { max-width: 100%; }
    .hero-buttons { justify-content: center; }
    .contact-content { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .nav-container { flex-direction: column; align-items: stretch; gap: 15px; }
    nav ul { justify-content: center; flex-wrap: wrap; gap: 15px; }
    .auth-buttons { justify-content: center; }
    .hero-text h1 { font-size: 2.2rem; }
    .hero-stats { grid-template-columns: 1fr 1fr 1fr; gap: 15px; padding: 25px; }
    .stat-number { font-size: 2rem; }
    .scripts-grid { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; text-align: center; }
    .admin-form { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .hero-text h1 { font-size: 1.8rem; }
    .hero-stats { grid-template-columns: 1fr; gap: 10px; }
    .section-header h2 { font-size: 1.8rem; }
    .modal-content { padding: 25px; }
}