/* ============================================= */
/* ---- TEMEL KURULUM VE SİBER-PİKSEL STİLLERİ ---- */
/* ============================================= */
:root {
    --main-purple: #9f50e8;
    --main-blue: #00f0ff;
    --main-yellow: #ff0;
    --bg-dark: #000;
    --bg-dark-trans: rgba(10, 0, 20, 0.8);
    --border-glow: rgba(159, 80, 232, 0.4);
    --border-color: #9f50e8;
    --text-light: #ccc;
    --text-white: #FFFFFF;
}

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

body {
    background-color: var(--bg-dark);
    background-image: 
        linear-gradient(rgba(159, 80, 232, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(159, 80, 232, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    color: var(--text-white);
    font-family: 'VT323', monospace;
    font-size: 22px;
    line-height: 1.6;
}

img { image-rendering: pixelated; max-width: 100%; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 80px 0; border-bottom: 2px solid rgba(159, 80, 232, 0.3); }
section.section-alt { background-color: rgba(10, 0, 20, 0.6); }
.pixel-box { background: var(--bg-dark-trans); border: 2px solid var(--border-color); padding: 20px; box-shadow: 0 0 15px var(--border-glow); }

/* ============================================= */
/* ---- NAVBAR (TAM DÜZELTİLMİŞ VERSİYON) ---- */
/* ============================================= */

#navbar { 
    background-color: rgba(0, 0, 0, 0.9); 
    border-bottom: 2px solid var(--border-color); 
    padding: 0; 
    position: fixed; 
    width: 100%; 
    top: 0; 
    height: 80px; /* Yüksekliği sabitledik */
    z-index: 1000; 
    display: flex;
    align-items: center;
}

#navbar .container { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; /* Logo sola, Cüzdan sağa */
    width: 100%; 
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative; /* Menüyü ortalamak için referans */
}

/* 1. LOGO (SOL) */
.nav-logo { 
    display: flex; 
    align-items: center; 
    text-decoration: none;
    z-index: 20; 
    flex-shrink: 0; /* Asla küçülmesin */
}
.navbar-logo { width: 45px; height: 45px; margin-right: 15px; }
.navbar-title { font-size: 32px; color: #fff; font-weight: bold; }

/* 2. MENÜ (TAM ORTA) */
.nav-menu { 
    position: absolute; /* Ortaya çiviliyoruz */
    left: 50%;
    transform: translateX(-50%);
    
    list-style: none; 
    display: flex; 
    align-items: center; 
    gap: 30px; 
    margin: 0;
    padding: 0;
    z-index: 10;
}

.nav-menu a { 
    color: #ccc; 
    text-decoration: none; 
    font-size: 24px; 
    transition: 0.3s; 
    text-transform: uppercase;
}

.nav-menu a:hover, .nav-menu a.active { 
    color: var(--main-purple); 
    text-shadow: 0 0 10px var(--main-purple); 
}

/* 3. CÜZDAN BUTONU (SAĞ - ORİJİNAL TASARIM) */
.nav-wallet {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    z-index: 20;
    flex-shrink: 0; /* Küçülmesin */
}

.btn-wallet { 
    /* ORİJİNAL TASARIM AYARLARI */
    background: transparent; 
    border: 2px solid var(--main-purple); 
    color: var(--main-purple); 
    
    width: 300px; /* İSTEDİĞİN GENİŞLİK */
    padding: 10px 0; 
    
    font-size: 16px; 
    font-family: 'VT323', monospace;
    letter-spacing: 1px;
    cursor: pointer; 
    transition: 0.3s; 
    text-align: center;
    
    display: flex;
    justify-content: center;
    align-items: center;
    
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-wallet:hover { 
    background: var(--main-purple); 
    color: #fff; 
    box-shadow: 0 0 15px rgba(159, 80, 232, 0.4); 
}

/* --- MOBİL MENÜ İKONU GÖRÜNÜRLÜĞÜ --- */
@media (max-width: 1200px) {
    .nav-menu { 
        display: none !important; /* Masaüstü menüyü gizle */
    }
    
    .nav-wallet {
        display: none !important; /* Mobilde header'daki cüzdanı gizle (Menü içine koyacağız) */
    }

    .mobile-menu-icon { 
        display: block !important; /* İkonu zorla göster */
        cursor: pointer;
        z-index: 2000;
        margin-left: auto; /* Sağa yasla */
    }

    .mobile-menu-icon span {
        display: block;
        width: 35px;
        height: 4px;
        background-color: #ffffff; /* Çubuklar BEYAZ olsun */
        margin: 6px 0;
        transition: 0.4s;
        box-shadow: 0 0 5px var(--main-purple); /* Hafif neon parlama */
    }
}

/* Dropdown stilleri */
.dropdown { position: relative; display: inline-block; }
.dropdown-content { display: none; position: absolute; background-color: var(--bg-dark); border: 2px solid var(--border-color); min-width: 160px; box-shadow: 0 0 15px var(--border-glow); z-index: 1; top: 100%; text-align: left;}
.dropdown-content a { color: var(--text-white); padding: 12px 16px; display: block; font-size: 20px; }
.dropdown:hover .dropdown-content { display: block; }
.dropdown:hover .dropbtn { color: var(--main-purple); }

.mobile-menu-icon { display: none; cursor: pointer; z-index: 1051; }
.mobile-menu-icon span { display: block; width: 30px; height: 3px; background-color: #fff; margin: 6px 0; transition: 0.4s; }
.mobile-menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.95); backdrop-filter: blur(5px); z-index: 1050; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: 0.3s; }
.mobile-menu-overlay.visible { opacity: 1; visibility: visible; }
.mobile-menu-close { position: absolute; top: 20px; right: 35px; color: #fff; font-size: 60px; text-decoration: none; }
.mobile-menu-content { display: flex; flex-direction: column; }
.mobile-menu-link { padding: 15px; font-size: 32px; color: #ccc; display: block; transition: 0.3s; }
.mobile-menu-link:hover { color: var(--main-purple); }
.mobile-menu-content .btn-wallet { font-size: 24px; margin-top: 30px; padding: 15px 30px; }

.btn { display: inline-block; padding: 15px 30px; font-family: 'VT323', monospace; font-size: 24px; border: none; cursor: pointer; margin: 5px; }
.btn-primary { background-color: var(--main-purple); color: #fff; border: 2px solid var(--main-purple); box-shadow: 0 0 15px var(--border-glow); }
.btn-secondary { background-color: #333; color: #ccc; border: 2px solid #555; }
.btn:disabled { background-color: #222; color: #555; border-color: #444; cursor: not-allowed; }

/* ---- ANA SAYFA ---- */
#hero { background: transparent; padding-top: 140px; padding-bottom: 80px; border-bottom: none; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.5fr; align-items: center; gap: 50px; }
.hero-image { width: 400px; max-width: 100%; border: 2px solid var(--border-color); box-shadow: 0 0 20px var(--border-glow); }
.hero-content h1 { font-size: 64px; color: #fff; margin-bottom: 10px; line-height: 1.2; text-shadow: 0 0 15px var(--border-glow); }
.hero-content p { font-size: 28px; color: #aaa; margin-bottom: 30px; }
.hero-buttons { display: flex; flex-wrap: wrap; }

#dashboard { 
    padding-top: 40px; 
    padding-bottom: 80px; 
    scroll-margin-top: 120px; 
}
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.stat-box { text-align: center; }
.stat-box h4 { font-size: 24px; color: var(--main-purple); margin-bottom: 10px; }
.stat-box p { font-size: 36px; color: #fff; }

/* ============================================= */
/* ---- CAROUSEL VE BAŞLIK DÜZELTMESİ (V3) ---- */
/* ============================================= */

/* 1. BAŞLIKLARI ORTALA */
.section-title {
    text-align: center;       /* Yazıyı ortala */
    font-size: 48px;          /* Biraz büyüt */
    margin-bottom: 50px;      /* Altına boşluk bırak */
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 0 15px var(--main-purple); /* Hafif neon efekt */
}

/* 2. CAROUSEL KAPLAYICI (CONTAINER) */
.carousel-container { 
    position: relative; 
    width: 100%; 
    max-width: 1400px; /* Çok geniş ekranlarda dağılmasın */
    margin: 0 auto;    /* Sayfada ortala */
    padding: 0 70px;   /* Oklar için sağ-sol boşluk */
    box-sizing: border-box; 
}

/* 3. GÖRÜNÜR ALAN (VIEWPORT) */
.carousel-viewport { 
    width: 100%; 
    overflow: hidden; /* Taşanları gizle */
    padding: 20px 0;  /* Üstten-alttan boşluk (Gölgeler kesilmesin diye) */
}

/* 4. KAYAN ŞERİT (SLIDER) */
.carousel-slider { 
    display: flex; 
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); /* Daha yumuşak kayma efekti */
    align-items: stretch; /* Kartların boyunu eşitle */
}

/* 5. KARTLAR (ITEM) - ESKİ BOYUTUNA GERİ DÖNDÜ */
.carousel-item { 
    flex: 0 0 320px;      /* 520px'den tekrar 320px yapıldı */
    max-width: 320px; 
    margin-right: 40px; 
    display: flex; 
    flex-direction: column; 
    height: auto; 
    background: rgba(10, 0, 20, 0.9); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.8); 
    border: 2px solid var(--border-color);
}

/* 6. RESİM ALANI - KUTU ESKİ BOYUTTA AMA RESİMLER BÜYÜYECEK */
.carousel-image-container { 
    width: 100%; 
    height: 280px;       /* Tekrar 280px yapıldı */
    background-color: #050505; 
    border-bottom: 2px solid var(--border-color); 
    margin-bottom: 15px; 
    overflow: hidden;    /* Resim taşarsa gizle (Zoom yapınca dışarı taşmasın) */
    display: flex; 
    align-items: center; 
    justify-content: center;
    padding: 0;          /* Padding'i kaldırdım ki resim kenarlara dayansın */
}

/* 7. GIF BÜYÜTME AYARI (BURASI YENİ) */
.carousel-image-container img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
    filter: drop-shadow(0 0 10px rgba(159, 80, 232, 0.3)); 
    
    /* İŞTE SİHİR BURADA: Resmi %60 büyütüyoruz */
    transform: scale(1.3); 
    transition: transform 0.3s ease;
}
/* İsteğe bağlı: Mouse üzerine gelince daha da büyüsün */
.carousel-item:hover .carousel-image-container img {
    transform: scale(1.4);
}

.carousel-item p { 
    font-size: 20px; 
    color: #aaa; 
    text-align: center; 
    margin-bottom: 15px; 
    flex-grow: 1; 
}

.asset-perk, .asset-cost {
    font-size: 22px; 
    padding: 8px 10px; 
    text-align: center; 
    display: block;
    margin-top: auto; /* En alta it */
}

.asset-perk { color: var(--main-blue); background: rgba(0, 240, 255, 0.1); }
.asset-cost { color: var(--main-yellow); background: rgba(255, 255, 0, 0.1); border-top: 1px solid #333; }


/* 8. OKLAR (ARROWS) */
.carousel-arrow { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    background-color: rgba(0, 0, 0, 0.9); 
    border: 2px solid var(--main-purple); 
    color: var(--main-purple); 
    font-size: 32px; 
    cursor: pointer; 
    z-index: 20; 
    width: 50px; 
    height: 50px; 
    line-height: 50px; 
    border-radius: 50%; 
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0,0,0,0.8);
}

.carousel-arrow:hover { 
    background-color: var(--main-purple); 
    color: #fff; 
    box-shadow: 0 0 20px var(--main-purple); 
    transform: translateY(-50%) scale(1.1); /* Büyüme efekti */
}

.carousel-arrow.prev { left: 10px; }
.carousel-arrow.next { right: 10px; }

.carousel-arrow:disabled { opacity: 0; pointer-events: none; }

/* ---- DRILLING SAYFASI (TEMİZ) ---- */
.drilling-page-body { padding-top: 80px; }
.drilling-container { display: grid; grid-template-columns: 350px 1fr; gap: 30px; max-width: 1400px; margin: 40px auto; padding: 0 20px; }

.drilling-stats { padding: 25px; }
.stats-group { margin-bottom: 25px; padding-bottom: 25px; border-bottom: 2px solid #333; }
.stats-group:last-child { border-bottom: none; margin-bottom: 0; }
.stats-group h4 { font-size: 24px; color: var(--main-purple); margin-bottom: 15px; }
.stat-row { display: flex; justify-content: space-between; font-size: 20px; color: var(--text-light); margin-bottom: 5px; }
.stat-row span:last-child { color: #fff; font-weight: bold; }
.stats-group p { font-size: 20px; color: var(--text-light); margin-bottom: 10px; }
.stats-group .btn { width: 100%; margin-top: 10px; }

.drilling-action-area { background-color: #0c0c0c; min-height: 600px; display: flex; justify-content: center; align-items: center; text-align: center; flex-direction: column; }
.action-content h2 { font-size: 42px; color: #fff; margin-bottom: 20px; }
.action-content p { font-size: 24px; color: var(--text-light); margin-bottom: 30px; }
.action-content .btn-primary { font-size: 28px; padding: 18px 35px; }

@media (max-width: 900px) {
    .nav-menu, .nav-wallet { display: none; }
    .mobile-menu-icon { display: block; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-image-container { order: 1; }
    .hero-content { order: 2; text-align: center; }
    .hero-buttons { justify-content: center; }
    .hero-content h1 { font-size: 48px; }
    .carousel-container { padding: 0; }
    .carousel-arrow { top: auto; bottom: -60px; transform: translateY(0); }
    .carousel-arrow.prev { left: 20px; }
    .carousel-arrow.next { right: 20px; }
    #field-collection, #rig-collection { padding-bottom: 140px; }
    .carousel-item { flex: 0 0 300px; max-width: 300px; }
    .carousel-image-container { height: 300px; }
    .drilling-container { grid-template-columns: 1fr; }
    .drilling-action-area { min-height: 400px; padding: 20px; }
    .action-content h2 { font-size: 32px; }
}

/* =============================================
   DRILLING GAME PANEL STYLES (V4 - KARE GRID DÜZELTMESİ)
   ============================================= */

.field-selector {
    margin-bottom: 15px;
    text-align: center;
    display: none; /* Selector gizli (Upgrade ile değişiyor) */
}

#game-panel {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- FIELD CONTAINER (ÇERÇEVESİZ) --- */
#field-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: auto;
    margin: 0 auto;
    image-rendering: pixelated;
}

#field-container img#field-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* --- IZOMETRİK GRID SİSTEMİ --- */
#grid-overlay {
    position: absolute;
    display: grid;
    place-content: center;
    transform: rotateX(60deg) rotateZ(-45deg);
    transform-style: preserve-3d;
    z-index: 10;
    pointer-events: auto;
}

/* Grid kapatıldığında çizgileri gizle */
.grid-hidden .grid-cell {
    border: none !important;
    background-color: transparent !important;
}

/* Izgara Hücreleri */
.grid-cell {
    position: relative;
    aspect-ratio: 1 / 1;
    border: 1px dashed rgba(0, 255, 255, 0.3);
    background-color: rgba(159, 80, 232, 0.1);
    cursor: pointer;
    transition: background-color 0.2s;
    transform-style: preserve-3d;
}

.grid-cell:hover {
    background-color: rgba(0, 240, 255, 0.4);
}

/* --- GÖLGE EFEKTİ (GROUNDING) --- */
.grid-cell:has(img)::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    height: 60%;
    transform: translate(-80%, -80%);
    background: radial-gradient(circle, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 70%);
    z-index: 15;
    pointer-events: none;
}

/* --- RIG RESİMLERİ (SENİN AYARLARIN KORUNDU) --- */
.grid-cell img {
    position: absolute;
    max-width: none !important;
    width: 220% !important; 
    height: auto !important;
    left: 40%;
    top: 125%;
    transform-origin: bottom center;
    transform: translate(-88%, -92%) rotateZ(45deg) rotateX(-60deg);
    pointer-events: none;
    z-index: 20;
    filter: drop-shadow(0px 5px 5px rgba(0,0,0,0.5));
}

/* --- PANEL KONTROLLERİ --- */
#panel-controls {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
#panel-controls #cell-info {
    min-width: 150px;
    text-align: center;
    font-size: 20px;
    color: var(--text-light);
}
#panel-controls .btn {
    padding: 10px 20px;
    font-size: 20px;
}

/* --- MODAL STYLES --- */
#buy-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center; align-items: center;
    z-index: 3000;
}
#buy-modal .modal-content {
    width: 90%; max-width: 900px; max-height: 90%;
    overflow-y: auto;
}
#buy-modal h3 { font-size: 32px; color: var(--main-purple); margin-bottom: 15px; }
#rig-list {
    display: flex; flex-direction: column;
    max-height: 400px; overflow-y: auto;
    border-right: 2px solid var(--border-color); padding-right: 10px;
}
.rig-item {
    display: flex; align-items: center; padding: 5px; cursor: pointer;
    font-size: 20px; color: var(--text-light);
}
.rig-item:hover { background-color: rgba(159, 80, 232, 0.2); }
.rig-item.active { background-color: rgba(159, 80, 232, 0.3); }
.rig-item img { width: 60px; height: 60px; margin-right: 10px; }
#rig-details { font-size: 20px; color: var(--text-light); }
.modal-actions {
    display: flex; justify-content: flex-end; margin-top: 20px; gap: 10px;
}

/* --- GRID SEÇİM EFEKTİ (MOR IŞIK) --- */
.grid-cell.selected {
    background-color: rgba(159, 80, 232, 0.3) !important; /* Mor yarı saydam zemin */
    box-shadow: 0 0 15px #9f50e8, inset 0 0 10px #9f50e8; /* Dış ve iç parlama */
    border: 2px solid #9f50e8 !important; /* Parlak mor çerçeve */
    z-index: 50; /* Diğerlerinin üstüne çıksın */
}

/* ============================================= */
/* ---- KİLİTLİ SAHA EKRANI (NO FIELD STATE) ---- */
/* ============================================= */

#no-field-state {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    border: 2px dashed #333;
    padding: 40px;
    min-height: 400px; /* Yükseklik garantisi */
}

.lock-icon {
    font-size: 64px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px var(--main-purple));
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

#no-field-state h3 {
    font-size: 42px;
    color: #fff;
    margin-bottom: 10px;
    text-transform: uppercase;
    text-shadow: 0 0 10px var(--main-purple);
}

#no-field-state p {
    font-size: 24px;
    color: #aaa;
    margin-bottom: 30px;
    max-width: 600px;
}

.btn-large {
    font-size: 28px !important;
    padding: 20px 40px !important;
    border: 2px solid var(--main-purple) !important;
    background-color: rgba(159, 80, 232, 0.1) !important;
    box-shadow: 0 0 20px rgba(159, 80, 232, 0.3);
    transition: 0.3s;
}

.btn-large:hover {
    background-color: var(--main-purple) !important;
    color: #fff !important;
    box-shadow: 0 0 30px rgba(159, 80, 232, 0.6);
    transform: scale(1.05);
}

/* ============================================= */
/* ---- WALLET MODAL STYLES (YENİ EKLENDİ) ---- */
/* ============================================= */
.wallet-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: none; /* Başlangıçta gizli */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wallet-overlay.active {
    display: flex;
    opacity: 1;
}

.wallet-box {
    width: 420px;
    max-width: 90%;
    background: #050505;
    border: 2px solid var(--main-purple);
    box-shadow: 0 0 30px rgba(159, 80, 232, 0.3);
    padding: 25px;
    position: relative;
}

.wallet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.wallet-header h3 {
    color: #fff;
    font-size: 32px;
    margin: 0;
    text-shadow: 0 0 10px var(--main-purple);
}

.wallet-close {
    font-size: 40px;
    color: #666;
    cursor: pointer;
    line-height: 0.8;
    transition: 0.3s;
}
.wallet-close:hover { color: #fff; }

.wallet-subtitle {
    color: #aaa;
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.wallet-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wallet-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    font-family: 'VT323', monospace;
    font-size: 22px;
    color: #fff;
    text-align: left;
}

.wallet-option:hover {
    background: rgba(159, 80, 232, 0.15);
    border-color: var(--main-purple);
    transform: translateX(5px);
}

.wallet-option.recommended {
    border-color: rgba(159, 80, 232, 0.5);
}

.wallet-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wallet-info img {
    width: 32px;
    height: 32px;
}

.wallet-badge {
    font-size: 14px;
    background: var(--main-purple);
    color: #fff;
    padding: 2px 8px;
    border-radius: 2px;
    text-shadow: none;
    letter-spacing: 1px;
}

.wallet-footer {
    margin-top: 25px;
    text-align: center;
    font-size: 16px;
    color: #555;
}
.wallet-footer a { color: var(--main-purple); text-decoration: none; }

/* ======================================================= */
/* ---- SWEETALERT2 (POPUP) PİKSEL TEMA ENTEGRASYONU ---- */
/* ======================================================= */

/* 1. Ana Kutu (Arka Plan, Çerçeve, Gölge) */
div:where(.swal2-container) div:where(.swal2-popup) {
    background-color: #0a0514 !important; /* Koyu Mor-Siyah */
    
    /* Izgara Deseni */
    background-image: 
        linear-gradient(rgba(159, 80, 232, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(159, 80, 232, 0.05) 1px, transparent 1px) !important;
    background-size: 20px 20px !important;

    /* Piksel Kenarlık ve Parlama */
    border: 4px solid #9f50e8 !important;
    border-radius: 0 !important; /* Köşeleri keskinleştir (Piksel hissi) */
    box-shadow: 
        0 0 0 4px #000, 
        0 0 20px rgba(159, 80, 232, 0.4), 
        inset 0 0 20px rgba(159, 80, 232, 0.2) !important;
        
    font-family: 'VT323', monospace !important;
}

/* 2. Başlık (Title) */
div:where(.swal2-container) h2:where(.swal2-title) {
    color: #9f50e8 !important;
    font-size: 36px !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0px #000, 0 0 10px rgba(159, 80, 232, 0.5) !important;
}

/* 3. İçerik Yazısı (Text) */
div:where(.swal2-container) div:where(.swal2-html-container) {
    color: #ccc !important;
    font-size: 22px !important;
}

/* 4. İkon (Ünlem İşareti vb.) */
div:where(.swal2-container) .swal2-icon {
    border-color: #9f50e8 !important;
    color: #9f50e8 !important;
    box-shadow: 0 0 10px rgba(159, 80, 232, 0.5) !important;
}

/* 5. ONAY Butonu (YES, REMOVE IT) */
div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm {
    background-color: #ff0000 !important; /* Kırmızı */
    color: #fff !important;
    border: 2px solid #fff !important;
    border-radius: 0 !important;
    font-size: 24px !important;
    font-family: 'VT323', monospace !important;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.6) !important;
    transition: 0.2s !important;
}
div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.9) !important;
}

/* 6. İPTAL Butonu (Cancel) */
div:where(.swal2-container) button:where(.swal2-styled).swal2-cancel {
    background-color: #333 !important;
    color: #aaa !important;
    border: 2px solid #666 !important;
    border-radius: 0 !important;
    font-size: 24px !important;
    font-family: 'VT323', monospace !important;
}
div:where(.swal2-container) button:where(.swal2-styled).swal2-cancel:hover {
    background-color: #444 !important;
    color: #fff !important;
}

/* ============================================= */
/* ---- TOKENOMICS (SON HALİ - MOR GÖLGELİ) ---- */
/* ============================================= */

.tokenomics-box {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 40px;
    border: 1px solid #333;
}

/* Izgara Yapısı */
.token-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.token-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    flex: 1 0 220px;
    max-width: 300px;
}

.token-item:hover {
    border-color: var(--main-purple);
    box-shadow: 0 0 15px rgba(159, 80, 232, 0.3);
    transform: translateY(-5px);
}

.token-label {
    font-size: 16px;
    color: #aaa;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* --- TEK TİP MOR GÖLGE AYARI --- */
.val-purple,
.val-green,
.val-yellow,
.val-blue {
    font-size: 36px;
    font-weight: bold;
    color: #FFFFFF; /* Yazı Beyaz */
    
    /* Güçlü Mor Neon Gölge */
    text-shadow: 
        0 0 10px var(--main-purple),
        0 0 20px var(--main-purple),
        0 0 40px rgba(159, 80, 232, 0.5); 
}

/* Açıklama Metni */
.token-desc p {
    font-size: 24px;
    color: #ccc;
    margin-bottom: 10px;
    line-height: 1.5;
}

.token-desc .highlight {
    color: #fff;
    border-bottom: 2px dashed var(--main-purple);
    text-shadow: 0 0 5px var(--main-purple);
}

.token-desc .sub-desc {
    font-size: 18px;
    color: #666;
    margin-bottom: 35px;
}

.token-desc strong {
    color: var(--main-yellow);
}

/* Buton Parlama Efekti */
.btn-glow {
    font-size: 24px;
    padding: 15px 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    background-color: var(--main-purple);
    border: 2px solid var(--main-purple);
    color: #fff;
    animation: btnPulse 2s infinite alternate;
    transition: 0.3s;
}

.btn-glow:hover {
    background-color: transparent;
    color: var(--main-purple);
    box-shadow: 0 0 30px var(--main-purple);
}

@keyframes btnPulse {
    from { box-shadow: 0 0 10px var(--main-purple); }
    to { box-shadow: 0 0 25px var(--main-purple), 0 0 5px #fff; }
}

/* ============================================= */
/* ---- REFERANS SAYFASI GÖRSEL AYARLARI (V3) ---- */
/* ============================================= */

/* Banner Kapsayıcısı */
.referral-banner-container {
    width: 100%;
    
    /* DEĞİŞİKLİK 1: Yüksekliği 200px'den 450px'e çıkardım (Görsel ferahlasın) */
    height: 450px; 
    
    /* DEĞİŞİKLİK 2: Genişliği 900px'e sabitledim (Sayfaya tam otursun) */
    max-width: 900px; 
    margin: 0 auto; /* Ortala */
    
    position: relative;
    
    /* Çerçeve ve Gölge */
    border: 4px solid var(--main-purple);
    box-shadow: 0 0 30px var(--border-glow), inset 0 0 50px #000;
    
    background-color: #000;
    overflow: hidden;
}

/* Resim Ayarı */
.referral-banner-img {
    width: 100%;
    height: 100%;
    
    /* DEĞİŞİKLİK 3: Resmi kutuya, oranını bozmadan sığdır */
    /* 'cover' yaparsan kutuyu doldurur (biraz kesilebilir) */
    /* 'contain' yaparsan resmin tamamını gösterir (kenarlarda siyahlık kalabilir) */
    /* Pepe görseli için 'cover' ve 'center' en iyisidir: */
    object-fit: cover; 
    object-position: center center; /* Tam ortala */
    
    opacity: 1; /* Netlik tam olsun */
}

/* Filtre Efekti (İsteğe bağlı, hafiflettim) */
.referral-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Sadece alt kısmı hafif karart */
    background: linear-gradient(to bottom, transparent 50%, rgba(10, 5, 20, 0.9) 100%);
    pointer-events: none;
}

/* ============================================= */
/* ---- FOOTER VE TOPLULUK DÜZENLEMESİ ---- */
/* ============================================= */

/* Topluluk Bölümü (Join the Oil Rush) */
#community {
    text-align: center;
    border-bottom: none;
    padding: 80px 20px;
    background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(159, 80, 232, 0.1));
}

#community h2 {
    font-size: 56px;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 0 20px var(--main-purple);
    letter-spacing: 2px;
}

#community p {
    font-size: 24px;
    color: #aaa;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

#community .btn-primary {
    font-size: 28px;
    padding: 18px 50px;
    border-radius: 0;
    box-shadow: 0 0 20px rgba(159, 80, 232, 0.4);
    transition: 0.3s;
}

#community .btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(159, 80, 232, 0.8);
}

/* Footer (En Alt Kısım) */
footer {
    background-color: #050505;
    text-align: center;
    padding: 40px 0;
    border-top: 2px solid var(--main-purple); /* Üstüne mor çizgi çektik */
    margin-top: 0;
    position: relative;
}

footer p {
    font-size: 18px;
    color: #666;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Footer'a hafif mor bir ışık yansıması ekleyelim */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 1px;
    background: var(--main-purple);
    box-shadow: 0 0 30px 5px var(--main-purple);
    opacity: 0.5;
}
/* ============================================= */
/* ---- SOCIAL BOUNTY (X / POST) TASARIMI ---- */
/* ============================================= */

.social-bounty-box {
    /* Twitter mavisini kaldır, koyu X teması yap */
    background: rgba(0, 0, 0, 0.8); 
    border: 2px solid #ffffff; /* Beyaz çerçeve (X stili) */
    margin-bottom: 30px;
    text-align: left;
    padding: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1); /* Hafif beyaz parlama */
}

/* Arka plana dev X logosu (Kuş yerine) */
.social-bounty-box::before {
    content: 'X'; /* Kuş emojisi yerine X harfi */
    position: absolute;
    right: -30px;
    bottom: -50px;
    font-size: 250px;
    font-family: sans-serif; /* Piksel font değil, düz X */
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05); /* Çok silik beyaz */
    pointer-events: none;
    z-index: 0;
}

.bounty-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 15px;
    position: relative;
    z-index: 1;
}

/* Başlık Rengi Mavi yerine Beyaz/Siyan */
.bounty-header h3 {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    font-size: 32px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* X Logosu İkonu (Başlığın yanına) */
.x-logo-icon {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: #fff;
    color: #000;
    text-align: center;
    line-height: 30px;
    font-family: sans-serif;
    font-weight: bold;
    font-size: 24px;
    border-radius: 4px;
}

.bounty-reward {
    background: var(--main-purple); /* Ödül yine mor kalsın */
    color: #fff;
    padding: 8px 15px;
    font-size: 22px;
    box-shadow: 0 0 15px var(--main-purple);
    border: 1px solid var(--main-purple);
}

.bounty-desc {
    color: #ccc;
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.bounty-steps {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.bounty-step {
    position: relative;
    flex: 1;
    min-width: 150px;
}

.step-num {
    position: absolute;
    top: -12px;
    left: -10px;
    width: 28px;
    height: 28px;
    background: #fff; /* Numaralar beyaz */
    color: #000;
    border: 2px solid #000;
    font-weight: bold;
    border-radius: 50%;
    font-size: 18px;
    text-align: center;
    line-height: 26px;
    z-index: 5;
}

/* X Stili Buton (Siyah/Beyaz) */
.btn-x-post {
    background-color: #000 !important;
    color: #fff !important;
    border: 2px solid #fff !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.btn-x-post:hover {
    background-color: #fff !important;
    color: #000 !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

/* Input alanı */
.pixel-input {
    width: 100%;
    padding: 15px 15px 15px 25px;
    background: rgba(0,0,0,0.7);
    border: 2px solid #555;
    color: #fff;
    font-family: 'VT323', monospace;
    font-size: 20px;
    outline: none;
    transition: 0.3s;
}

.pixel-input:focus {
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}
/* ---- POST TO EARN SAYFASI STİLLERİ ---- */

/* Büyük Siyah X Butonu */
.btn-x-login {
    background-color: #000;
    color: #fff;
    border: 2px solid #fff;
    font-size: 28px;
    padding: 20px 50px;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    font-family: 'VT323', monospace;
    display: inline-flex;
    align-items: center;
    gap: 15px;
}
.btn-x-login:hover {
    background-color: #fff;
    color: #000;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
}

/* Giriş Yapılınca Çıkan Profil Kartı */
.user-profile-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #444;
    padding: 15px 20px;
    margin-bottom: 25px;
}

.profile-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-pic {
    width: 50px;
    height: 50px;
    background-color: #333;
    border: 2px solid #00f0ff; /* Mavi neon çerçeve */
    background-image: url('https://abs.twimg.com/sticky/default_profile_images/default_profile_400x400.png');
    background-size: cover;
}

.profile-info h4 {
    margin: 0;
    font-size: 24px;
    color: #fff;
    line-height: 1;
}

.status-badge {
    font-size: 14px;
    background: #00f0ff; /* Neon Mavi */
    color: #000;
    padding: 2px 6px;
    font-weight: bold;
}

.btn-logout {
        width: 100%; /* Buton tam genişlik olsun */
        text-align: center;
        padding: 10px;
        margin-top: 5px;
    }
    
    .profile-left {
        width: 100%; /* Profil bilgisi de tam genişlik */
    }

.mission-divider {
    height: 2px;
    background: repeating-linear-gradient(90deg, #333 0, #333 10px, transparent 10px, transparent 20px);
    margin: 20px 0;
}
/* ============================================= */
/* ---- FLOATING SOCIAL ICONS (GÜNCELLENDİ: YAN YANA & KÜÇÜK) ---- */
/* ============================================= */

.floating-socials {
    position: fixed;
    bottom: 20px;  /* Aşağıya biraz daha yaklaştırdık */
    right: 20px;   /* Sağa biraz daha yaklaştırdık */
    display: flex;
    flex-direction: row; /* Yan yana dizilim */
    gap: 10px;     /* Aralarındaki boşluk */
    z-index: 9999;
}

.float-icon {
    width: 40px;   /* 55px'den 40px'e düşürdük */
    height: 40px;  /* Kare formunu koruduk */
    background-color: #000;
    border: 2px solid var(--main-purple);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px; /* İkon/Yazı boyutunu küçülttük */
    box-shadow: 0 0 10px rgba(159, 80, 232, 0.4);
    transition: all 0.3s ease;
    image-rendering: pixelated;
    border-radius: 4px; /* Hafif yumuşak köşe (isteğe bağlı) */
}

.float-icon:hover {
    background-color: var(--main-purple);
    color: #fff;
    transform: translateY(-5px); /* Üzerine gelince hafif yukarı zıplasın */
    box-shadow: 0 0 20px var(--main-purple);
}

/* X (Twitter) Özel Stili */
.float-icon.x-icon {
    font-family: sans-serif;
    font-weight: 900;
    font-size: 20px; /* X harfi biraz daha belirgin olsun */
}

/* GitBook Özel Stili */
.float-icon.gitbook {
    font-size: 22px; 
}

/* Mobilde zaten küçük olduğu için ekstra küçültmeye gerek kalmadı */

/* ---- FORM INPUT STİLİ ---- */
.pixel-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #555;
    color: #fff;
    font-family: 'VT323', monospace;
    font-size: 18px;
    padding: 0 15px;
    outline: none;
    transition: 0.3s;
    box-sizing: border-box; /* Taşmayı önler */
}

.pixel-input:focus {
    border-color: #9f50e8;
    box-shadow: 0 0 10px rgba(159, 80, 232, 0.5);
}

.pixel-input::placeholder {
    color: #888;
}
/* --- MOBİL DÜZELTMELERİ --- */

/* Mobil Menü Katmanı */
.mobile-menu-overlay {
    z-index: 2000 !important; /* Yüksek */
}

/* Cüzdan Penceresi Katmanı (EN ÜSTTE OLMALI) */
.wallet-overlay {
    z-index: 9999 !important; /* Mobil menüden çok daha yüksek olmalı */
}
/* ============================================= */
/* ---- MOBİL DÜZELTMESİ: LOGOUT BUTONU ---- */
/* ============================================= */

@media (max-width: 600px) {
    /* Profil kartını yan yana değil, alt alta dizer */
    .user-profile-card {
        flex-direction: column !important; 
        align-items: flex-start !important;
        gap: 15px;
        padding: 20px !important;
    }

    /* Profil resmi ve ismin olduğu kısmı genişletir */
    .profile-left {
        width: 100%;
        margin-bottom: 5px;
    }

    /* Logout butonunu tam genişlik yapar ve aşağı alır */
    .btn-logout {
        width: 100% !important;
        text-align: center;
        display: block;
        margin-top: 10px;
        padding: 12px 0; /* Tıklaması kolay olsun diye büyüttük */
    }
}