:root {
    --bg-dark: #08080c;
    --bg-card: #101016;
    --primary: #7248f5;
    --primary-glow: rgba(114, 72, 245, 0.5);
    --text-white: #ffffff;
    --text-gray: #a0a0b0;
    --border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
}

/* --- ANIMASYONLU ARKAPLAN --- */
.bg-grid {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
    transform: perspective(500px) rotateX(60deg) scale(2);
    transform-origin: top;
    animation: gridMove 20s linear infinite;
    opacity: 0.4;
    pointer-events: none;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 0 500px; }
}

.bg-glow {
    position: fixed;
    top: -20%; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    z-index: -1;
    filter: blur(90px);
    opacity: 0.6;
}

/* --- NAVBAR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(8, 8, 12, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}
.highlight { color: var(--primary); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a.nav-item {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.3s;
    position: relative;
}

.nav-links a.nav-item:hover { color: var(--text-white); }
.nav-links a.nav-item::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px;
    background: var(--primary); transition: 0.3s;
}
.nav-links a.nav-item:hover::after { width: 100%; }

.discord-btn {
    background: #5865F2;
    padding: 8px 20px;
    border-radius: 6px;
    color: white !important;
    font-weight: 600 !important;
    text-decoration: none;
    display: flex; align-items: center; gap: 8px;
    transition: 0.3s;
}
.discord-btn:hover { background: #4752c4; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(88, 101, 242, 0.3); }

/* --- HAMBURGER MENU (MOBIL) --- */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}
.hamburger span {
    width: 25px; height: 3px; background-color: var(--text-white); border-radius: 2px; transition: 0.3s;
}
.hamburger.toggle span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.toggle span:nth-child(2) { opacity: 0; }
.hamburger.toggle span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* --- HERO --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px 50px;
}

.status-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 25px;
    border: 1px solid rgba(46, 204, 113, 0.2);
}
.pulse {
    width: 8px; height: 8px; background: #2ecc71; border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

.hero h1 {
    font-size: 4rem; line-height: 1.1; margin-bottom: 20px; font-weight: 800;
}
.gradient-text {
    background: linear-gradient(90deg, #fff, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p {
    color: var(--text-gray); font-size: 1.2rem; max-width: 600px; margin: 0 auto 40px;
}

.hero-stats {
    display: flex; justify-content: center; gap: 20px; margin-bottom: 40px; flex-wrap: wrap;
}
.stat-item {
    display: flex; align-items: center; gap: 10px; color: var(--text-white); font-weight: 500;
    background: rgba(255,255,255,0.03); padding: 12px 24px; border-radius: 12px; border: 1px solid var(--border);
}
.stat-item i { color: var(--primary); }

.buttons { display: flex; gap: 15px; justify-content: center; }
.btn {
    padding: 14px 35px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: 0.3s;
}
.btn.primary {
    background: var(--primary); color: white; box-shadow: 0 0 25px var(--primary-glow);
}
.btn.primary:hover { background: #5f3dc4; transform: translateY(-3px); }
.btn.secondary { background: transparent; border: 1px solid var(--border); color: var(--text-white); }
.btn.secondary:hover { background: rgba(255,255,255,0.05); }

/* --- FEATURES SECTION --- */
.features-section { padding: 80px 0; }
.container { max-width: 1200px; margin: 0 auto; width: 90%; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 10px; }
.divider { width: 60px; height: 4px; background: var(--primary); margin: 15px auto; border-radius: 2px; }

.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px;
}
.feature-box {
    background: var(--bg-card); padding: 30px; border-radius: 20px; border: 1px solid var(--border);
    transition: 0.3s; text-align: left;
}
.feature-box:hover { transform: translateY(-10px); border-color: var(--primary); box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.icon-box {
    width: 50px; height: 50px; background: rgba(114, 72, 245, 0.1); border-radius: 12px;
    display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.2rem; margin-bottom: 20px;
}
.feature-box h3 { font-size: 1.3rem; margin-bottom: 10px; }
.feature-box p { color: var(--text-gray); font-size: 0.95rem; line-height: 1.6; }

/* --- SCRIPTS GRID (DÜZELTİLDİ: Tek kart genişlemeyecek) --- */
.scripts-section { padding: 80px 0; background: #0b0b10; }

.scripts-grid {
    display: grid;
    /* auto-fit ve minmax ile kart boyutu en az 320px, en fazla 380px olacak şekilde ayarlandı */
    grid-template-columns: repeat(auto-fit, minmax(320px, 380px)); 
    justify-content: center; /* Kartları ortala */
    gap: 40px;
}

.card {
    background: var(--bg-card); 
    border: 1px solid var(--border); 
    border-radius: 16px;
    overflow: hidden; 
    transition: 0.3s; 
    position: relative;
    max-width: 380px; /* Kartın maksimum genişliğini sınırla */
    width: 100%; /* Grid hücresini doldur */
}
.card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }

.card-img {
    height: 180px; background-size: cover; background-position: center; position: relative;
}
.tag {
    position: absolute; top: 15px; right: 15px; padding: 4px 10px; border-radius: 6px;
    font-size: 11px; font-weight: 700; backdrop-filter: blur(5px);
}
.tag.active { background: rgba(46, 204, 113, 0.9); color: white; }
.tag.update { background: rgba(241, 196, 15, 0.9); color: black; }

.card-info { padding: 25px; }
.card-info h3 { font-size: 1.3rem; margin-bottom: 8px; }
.desc { color: var(--text-gray); font-size: 0.9rem; margin-bottom: 20px; line-height: 1.5; }

.btn-card {
    display: flex; justify-content: center; align-items: center; gap: 10px; width: 100%; padding: 12px;
    background: rgba(255, 255, 255, 0.05); color: white; text-decoration: none; border-radius: 8px;
    font-weight: 600; transition: 0.3s; border: 1px solid transparent;
}
.btn-card:hover { background: var(--primary); border-color: var(--primary); }

/* --- FOOTER --- */
footer { padding: 50px 0; background: var(--bg-card); border-top: 1px solid var(--border); margin-top: 50px; }
.footer-content {
    max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 20px;
}
.footer-left h3 { font-size: 1.5rem; margin-bottom: 5px; }
.footer-left span { color: var(--primary); }
.footer-left p, .footer-right p { color: var(--text-gray); font-size: 0.9rem; }
.footer-right { display: flex; gap: 20px; align-items: center; }
.footer-right a { color: var(--text-gray); text-decoration: none; transition: 0.3s; cursor: pointer; }
.footer-right a:hover { color: var(--text-white); }

/* --- MODAL STYLES (Terms & Privacy Pencereleri İçin) --- */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px); z-index: 2000;
    justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s;
}
.modal-overlay.active { display: flex; opacity: 1; }
.modal-content {
    background: var(--bg-card); padding: 40px; border-radius: 16px; border: 1px solid var(--border);
    max-width: 600px; width: 90%; position: relative; max-height: 80vh; overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6); transform: translateY(-30px); transition: transform 0.3s;
}
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-content h2 { margin-bottom: 20px; color: var(--primary); }
.modal-body p { margin-bottom: 15px; color: var(--text-gray); font-size: 0.95rem; line-height: 1.6; }
.modal-body strong { color: var(--text-white); }
.close-modal {
    position: absolute; top: 20px; right: 25px; font-size: 28px; cursor: pointer;
    color: var(--text-gray); transition: 0.3s;
}
.close-modal:hover { color: var(--text-white); transform: scale(1.1); }

/* --- ANIMATIONS (Fade In Up) --- */
.fade-in-up { opacity: 0; transform: translateY(30px); transition: 0.8s ease-out; }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }
.fade-in { opacity: 0; transition: 1s ease-out; }
.fade-in.visible { opacity: 1; }

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .navbar { padding: 20px; }
    .hamburger { display: flex; z-index: 1001; }
    
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 70%; height: 100vh;
        background: rgba(8, 8, 12, 0.98); backdrop-filter: blur(15px);
        flex-direction: column; justify-content: center; gap: 40px;
        transition: 0.4s ease-in-out; box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    .nav-links.active { right: 0; }
    
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1rem; }
    .hero-stats { flex-direction: column; width: 100%; }
    .stat-item { justify-content: center; }
    
    .footer-content { flex-direction: column; text-align: center; gap: 30px; }
    .footer-right { flex-direction: column; gap: 10px; }
}

.admin-access-btn {
    position: fixed;
    bottom: 30px;  /* Sağ altta */
    right: 30px;
    background-color: #ff0000; /* Parlak Kırmızı */
    color: white;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    z-index: 10000; /* Her şeyin üstünde */
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}
.admin-access-btn:hover {
    transform: scale(1.05);
    background-color: #cc0000;
    cursor: pointer;
}