:root {
    --primary: #4e73df;
    --secondary: #224abe;
    --dark: #0b0e14;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text: #ffffff;
    --text-muted: #adb5bd;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

body {
    background-color: var(--dark);
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: 0.4s;
    background: rgba(11, 14, 20, 0.8);
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 24px; font-weight: 700; letter-spacing: 1px;
}
.logo i { color: var(--primary); margin-right: 8px; }
.logo span { color: var(--primary); }

.nav-menu { display: flex; align-items: center; gap: 30px; }
.nav-menu a { text-decoration: none; color: var(--text); font-weight: 500; font-size: 15px; transition: 0.3s; }
.nav-menu a:hover { color: var(--primary); }

.auth-group { display: flex; align-items: center; gap: 15px; margin-left: 20px; }
.btn-login { padding: 8px 20px; border: 1px solid var(--primary); border-radius: 8px; }
.btn-register { background: var(--gradient); padding: 9px 22px; border-radius: 8px; font-weight: 600; }
.btn-register:hover {background: #fff; }

/* Hero Section */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1639762681485-074b7f938ba0?auto=format&fit=crop&q=80&w=2000') center/cover no-repeat;
    display: flex;
    align-items: center;
    position: relative;
}

.overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, #0b0e14 30%, transparent 100%);
}

.hero-content { position: relative; z-index: 1; }
.hero-text h1 { font-size: 4rem; font-weight: 700; margin-bottom: 20px; max-width: 700px; }
.hero-text p { color: var(--text-muted); font-size: 1.2rem; max-width: 600px; margin-bottom: 35px; }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.btn-main { background: var(--gradient); padding: 15px 35px; border-radius: 30px; color: #fff; text-decoration: none; font-weight: 700; margin-right: 15px; display: inline-block; transition: 0.3s; }
.btn-outline { border: 1px solid #fff; padding: 15px 35px; border-radius: 30px; color: #fff; text-decoration: none; display: inline-block; transition: 0.3s; }

/* Stats */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: -60px; position: relative; z-index: 5; }
.stat-box { background: #161b22; padding: 40px; border-radius: 20px; text-align: center; border-bottom: 4px solid var(--primary); }
.stat-box i { font-size: 2.5rem; color: var(--primary); margin-bottom: 20px; }

/* Shop Section */
.shop-section { padding: 100px 0;}
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.5rem; }

.card-grid { 
    display: grid; 
    /* minmax değerini 200px'e düşürerek yan yana 5 tanesinin sığmasını sağlıyoruz */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 20px; /* Kartlar arası boşluğu biraz daralttık */
}

/* Kartların padding değerini de çok az küçülterek iç alanları rahatlatabiliriz */
.rig-card {
    background: var(--card-bg); 
    padding: 30px 20px; /* Eski değer: 40px 30px */
    border-radius: 25px;  
    text-align: center; 
    border: 1px solid rgba(255,255,255,0.1);  
    backdrop-filter: blur(5px); 
    transition: 0.4s; 
    position: relative;
}
.rig-card:hover { transform: translateY(-15px); border-color: var(--primary); background: rgba(255,255,255,0.08); }

.featured { border: 2px solid var(--primary); transform: scale(1.05); }
.popular-tag { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--primary); padding: 5px 15px; border-radius: 20px; font-size: 12px; font-weight: bold; }

.rig-icon { font-size: 3rem; color: var(--primary); margin-bottom: 20px; }
.daily { font-size: 1.5rem; font-weight: bold; margin-bottom: 5px; }
.daily span { font-size: 0.9rem; color: var(--text-muted); }
.price { font-size: 2rem; color: var(--primary); font-weight: 700; margin-bottom: 20px; }

.features { list-style: none; margin-bottom: 30px; text-align: left; }
.features li { margin-bottom: 10px; color: var(--text-muted); font-size: 14px; }
.features li i { color: #2ecc71; margin-right: 8px; }

.btn-card { display: block; background: rgba(255,255,255,0.1); color: #fff; text-decoration: none; padding: 12px; border-radius: 12px; transition: 0.3s; }
.featured-btn { background: var(--gradient); }

.mobile-toggle { 
    display: none; /* Masaüstünde görünmesini engeller */
    background: none; 
    border: none; 
    color: #fff; 
    font-size: 24px; 
}

/* Mobile */
/* Mobile Responsive Güncellemesi */
@media (max-width: 768px) {
    .mobile-toggle { 
        display: block; 
        cursor: pointer;
    }

    .nav-menu { 
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px; /* Navbar yüksekliği kadar aşağıda başlasın */
        left: 0;
        width: 100%;
        background: rgba(11, 14, 20, 0.95);
        backdrop-filter: blur(15px);
        padding: 30px;
        gap: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        
        /* Menünün varsayılan olarak kapalı durması ve akıcı açılması için */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s ease;
    }

    /* JavaScript tetiklediğinde menüyü gösterecek olan klas */
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .auth-group {
        flex-direction: column;
        width: 100%;
        margin-left: 0;
        gap: 10px;
    }

    .btn-login, .btn-register {
        display: block;
        text-align: center;
        width: 100%;
    }

    /* Hero ve diğer alanların mobilde daralması */
    .hero-text h1 { font-size: 2.2rem; }
    .grid-3 { grid-template-columns: 1fr; margin-top: 20px; }
}

/* ==========================================================================
   RE-DESIGNED AUTHENTICATION PAGES STYLES
   ========================================================================== */

/* Kayıt sayfası body ayarı */
.auth-page-body {
    background-color: #0b0e14;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: radial-gradient(circle at center, #161d30 0%, #0b0e14 100%);
}

/* Auth Sayfaları İçin Navbar */
.auth-navbar {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    background: rgba(11, 14, 20, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.auth-nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-nav-logo a {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
}
.auth-nav-logo i { color: #4e73df; margin-right: 8px; }
.auth-nav-logo span { color: #4e73df; }

.auth-nav-links a.nav-back-btn {
    color: #adb5bd;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.auth-nav-links a.nav-back-btn:hover {
    color: #4e73df;
}

/* Formu Ortalamak İçin Wrapper */
.auth-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 20px 40px 20px; /* Üstten navbar payı bırakıldı */
    z-index: 5;
}

/* Cam Efektli Form Kartı */
.auth-card {
    width: 100%;
    max-width: 440px;
    background: rgba(22, 27, 34, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.auth-card-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-card-header h2 {
    font-size: 26px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.auth-card-header p {
    color: #adb5bd;
    font-size: 13px;
    line-height: 1.5;
}

/* Form İçeriği ve Input Grupları */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-input-field {
    position: relative;
    width: 100%;
}

/* İnput içi ikonlar */
.auth-input-field i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 16px;
    transition: 0.3s;
    pointer-events: none;
}

/* İnput elementleri */
.auth-input-field input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background: rgba(11, 14, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* İnput odaklanma (Focus) efekti */
.auth-input-field input:focus {
    outline: none;
    border-color: #4e73df;
    box-shadow: 0 0 12px rgba(78, 115, 223, 0.25);
    background: rgba(11, 14, 20, 0.85);
}

.auth-input-field input:focus + i {
    color: #4e73df;
}

/* Kayıt Butonu */
.auth-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.auth-submit-btn:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

/* Form Altı Yönlendirme Linki */
.auth-card-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #adb5bd;
}

.auth-card-footer a {
    color: #4e73df;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.auth-card-footer a:hover {
    text-decoration: underline;
}

/* Mobil Cihazlar İçin Küçük Ekran Optimizasyonu */
@media (max-width: 480px) {
    .auth-card {
        padding: 30px 20px;
        border-radius: 20px;
    }
    .auth-card-header h2 {
        font-size: 22px;
    }
}

/* Giriş Sayfası Bildirim Kutuları */
.auth-alert {
    padding: 12px 15px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}
.auth-alert.success {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid #2ecc71;
    color: #2ecc71;
}
.auth-alert.danger {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid #e74c3c;
    color: #e74c3c;
}

/* ==========================================================================
   GAME IN-DASHBOARD & SIDEBAR STYLES (RESPONSIVE)
   ========================================================================== */

.game-body {
    background-color: #0b0e14;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    display: flex;
    min-height: 100vh;
}

/* Mobile Header (Sadece Mobilde Görünür) */
.mobile-header {
    display: none;
    width: 100%;
    height: 60px;
    background: #161b22;
    position: fixed;
    top: 0; left: 0;
    z-index: 1001;
    padding: 0 20px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.mobile-logo { font-size: 20px; font-weight: 700; }
.mobile-logo span, .sidebar-logo span { color: #4e73df; }
.mobile-menu-btn { background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; }

/* Sol Menü (Sidebar) Masaüstü */
.game-sidebar {
    width: 260px;
    background: #161b22;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; bottom: 0; left: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-logo {
    padding: 25px 20px;
    font-size: 22px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

/* Kullanıcı Profil Özeti (Menü Üstü) */
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.15);
    margin: 15px;
    border-radius: 12px;
}
.user-avatar {
    width: 45px; height: 45px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center; justify-content: center;
    font-size: 18px;
}
.user-info h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.user-info span { font-size: 11px; color: #adb5bd; }

/* Linkler */
.sidebar-menu { display: flex; flex-direction: column; gap: 5px; padding: 10px 15px; }
.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #adb5bd;
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s;
}
.sidebar-menu a:hover, .sidebar-menu a.active {
    background: rgba(78, 115, 223, 0.1);
    color: #4e73df;
}
.sidebar-divider { border: 0; height: 1px; background: rgba(255, 255, 255, 0.05); margin: 10px 0; }
.logout-link:hover { color: #e74c3c !important; background: rgba(231, 76, 60, 0.1) !important; }

/* Sağ İçerik Alanı */
.game-content {
    flex: 1;
    margin-left: 260px; /* Menü genişliği kadar boşluk */
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.content-header h1 { font-size: 28px; font-weight: 600; margin-bottom: 5px; }
.content-header p { color: #adb5bd; font-size: 14px; }

/* Reklam Alanları Stilleri */
.ad-zone {
    background: none;
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center; justify-content: center;
    color: #555;
    font-weight: 700;
    font-size: 12px;
    text-align: center;
}
.banner-ad { width: 100%; height: 90px; max-width: 728px; margin: 0 auto; }
.square-ad { width: 300px; height: 250px; margin: 0 auto; }

/* İstatistik Grid */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.game-stat-card {
    background: #161b22;
    padding: 25px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}
.game-stat-card .card-icon {
    width: 55px; height: 55px;
    border-radius: 14px;
    display: flex;
    align-items: center; justify-content: center;
    font-size: 24px;
}
.card-purple .card-icon { background: rgba(102, 126, 234, 0.1); color: #667eea; }
.card-blue .card-icon { background: rgba(78, 115, 223, 0.1); color: #4e73df; }
.card-green .card-icon { background: rgba(46, 204, 113, 0.1); color: #2ecc71; }

.card-data h3 { font-size: 13px; color: #adb5bd; font-weight: 500; margin-bottom: 5px; }
.card-data .value { font-size: 22px; font-weight: 700; }
.card-data .value span { font-size: 12px; color: #555; font-weight: 500; }

/* Panel Satır Yapısı */
.dashboard-row { display: flex; gap: 20px; align-items: flex-start; }
.main-block { flex: 1; }
.side-block { width: 300px; }

.game-card { background: #161b22; padding: 30px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.03); }
.game-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.game-card h3 i { color: #f1c40f; }

.rig-list { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.rig-list li {
    display: flex; justify-content: space-between;
    padding: 12px 15px; background: rgba(0,0,0,0.2); border-radius: 10px; font-size: 14px;
}
.rig-list li strong { color: #4e73df; }

/* Responsive (Mobil) Çözümler */
@media (max-width: 992px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .dashboard-row { flex-direction: column; }
    .side-block { width: 100%; }
    .sidebar-logo{display: none;}
}

@media (max-width: 768px) {
    .mobile-header { display: flex; }
    .game-sidebar { transform: translateX(-260px); top: 60px; } /* Gizle */
    .game-sidebar.open { transform: translateX(0); } /* JS ile aç */
    .sidebar-logo{display: none;}
    
    .game-content { margin-left: 0; padding: 80px 20px 20px 20px; }
    .stats-grid { grid-template-columns: 1fr; }
    .content-header h1 { font-size: 22px; }
}
/* Mağaza Özel Görsel ve Buton Düzenlemeleri */
.rig-image-container {
    width: 100%;
    height: 140px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    margin-bottom: 15px;
    overflow: hidden;
}

.rig-image-placeholder {
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 8px; color: #555; font-size: 11px;
    font-weight: 600; letter-spacing: 0.5px;
}
.rig-image-placeholder i { font-size: 32px; color: rgba(255,255,255,0.05); }

/* Devre dışı butonlar */
.btn-card.disabled {
    background: rgba(255, 255, 255, 0.03) !important;
    color: #666 !important;
    cursor: not-allowed !important;
    border: 1px solid rgba(255,255,255,0.02);
}
.btn-card.disabled-balance {
    background: rgba(231, 76, 60, 0.1) !important;
    color: #e74c3c !important;
    cursor: not-allowed !important;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

/* Sidebar Sosyal Medya İkon Alanı */
.sidebar-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 10px 0;
    margin: 5px 0 20px 0;
}

.sidebar-socials a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: #adb5bd;
    font-size: 18px;
    transition: all 0.3s ease;
    padding: 0 !important; /* Standart menü padding'ini sıfırlıyoruz */
    text-decoration: none;
}

/* Üzerine gelindiğinde kendi renklerine bürünme efektleri */
.sidebar-socials a:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.08);
}

/* Telegram Hover */
.sidebar-socials a[title="Telegram"]:hover {
    color: #0088cc;
    border-color: rgba(0, 136, 204, 0.4);
    box-shadow: 0 0 10px rgba(0, 136, 204, 0.2);
}

/* X (Twitter) Hover */
.sidebar-socials a[title="X (Twitter)"]:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Discord Hover */
.sidebar-socials a[title="Discord"]:hover {
    color: #5865F2;
    border-color: rgba(88, 101, 242, 0.4);
    box-shadow: 0 0 10px rgba(88, 101, 242, 0.2);
}

.game-sidebar {
    display: flex;
    flex-direction: column;
    height: 100vh; /* Ekranın tam boyu kadar yer kaplasın */
    overflow-y: auto; /* İçerik dikeyde taşarsa kaydırma çubuğu çıksın */
}

/* Kaydırma çubuğunun (scrollbar) sitenizin karanlık temasına uyumlu olması için (İsteğe bağlı): */
.game-sidebar::-webkit-scrollbar {
    width: 6px;
}
.game-sidebar::-webkit-scrollbar-track {
    background: #1e293b; 
}
.game-sidebar::-webkit-scrollbar-thumb {
    background: #475569; 
    border-radius: 3px;
}