/* --- PARAX CORE STYLESHEET - V3.1 PREMIUM (Stats & Profile Integrated) --- */

/* 1. TEMEL SIFIRLAMA VE SABİTLEME */
:root {
    --accent: #8332c5;
    --glass: rgba(18, 18, 18, 0.95);
    --border: rgba(255, 255, 255, 0.1);
    --bg-dark: #000000;
    --nav-inactive: rgba(255, 255, 255, 0.35);
}

/* Sayfanın kendisinin kaymasını yasaklıyoruz */
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden !important;
    position: fixed;
    background-color: var(--bg-dark);
    font-family: 'Inter', sans-serif;
    color: white;
    -webkit-font-smoothing: antialiased;
    overscroll-behavior: none !important; /* DÜZELTME: Tarayıcı esnemesi kapatıldı */
}

#app-root {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
}

/* --- MESH GRADIENT ARKA PLAN (DİNAMİK) --- */
.fixed-bg-mesh {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    filter: blur(120px);
    opacity: 0.5;
    background-color: #000;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(131, 50, 197, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(131, 50, 197, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(131, 50, 197, 0.15) 0%, transparent 50%);
    animation: mesh-flow 25s ease-in-out infinite alternate;
}

@keyframes mesh-flow {
    0% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.1) translate(-2%, 3%); }
    100% { transform: scale(1.05) translate(3%, -2%); }
}

/* 2. HEADER (ÜST BAR) TASARIMI */
#header {
    flex: 0 0 80px;
    background: var(--glass);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.logo-aura span {
    animation: logo-flicker 4s infinite ease-in-out;
}

@keyframes logo-flicker {
    0%, 100% { opacity: 1; text-shadow: 0 0 10px var(--accent); }
    50% { opacity: 0.8; text-shadow: 0 0 20px var(--accent); }
}

/* --- AURA-PREMIUM NAVİGASYON (PC) --- */
.premium-aura-nav {
    background: transparent !important;
    border: none !important;
}

.aura-link-v2 {
    position: relative;
    background: none !important;
    border: none !important;
    cursor: pointer;
    color: var(--nav-inactive) !important;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2.2px;
    padding: 10px 0;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    white-space: nowrap;
}

/* Hover: Şeffaf Cam Panel ve Glow */
.aura-link-v2:hover {
    color: white !important;
    transform: translateY(-1px);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Aktiflik: Neon Underline & Aura */
.aura-link-v2.active {
    color: white !important;
    text-shadow: 0 0 15px rgba(131, 50, 197, 0.8);
}

/* Aktiflik Alt Neon Şeridi */
.aura-link-v2.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent), 0 0 30px var(--accent);
    border-radius: 10px;
    animation: aura-line-slide 0.4s ease-out forwards;
}

@keyframes aura-line-slide {
    from { transform: scaleX(0); opacity: 0; }
    to { transform: scaleX(1); opacity: 1; }
}

/* Mobil Alt Bar Aktiflik */
.mobile-btn.active {
    color: var(--accent) !important;
    text-shadow: 0 0 15px var(--accent);
}

/* --- HİZALANMIŞ CANLI AKIŞ BAR-I --- */
.ticker-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.ticker-container-aura {
    width: 100%;
    max-width: 1200px;
    background: rgba(131, 50, 197, 0.08);
    border: 1px solid rgba(131, 50, 197, 0.25);
    height: 46px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    overflow: hidden;
    backdrop-filter: blur(15px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}

.ticker-badge {
    background: var(--accent);
    height: 100%;
    z-index: 10;
    box-shadow: 15px 0 25px rgba(0,0,0,0.5);
}

.ticker-content {
    display: flex;
    animation: ticker-slide-v3 45s linear infinite;
    min-width: 250%; 
}

@keyframes ticker-slide-v3 {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

.ticker-content:hover {
    animation-play-state: paused;
}

/* 3. ANA İÇERİK (TÜNEL) */
#main-scroller {
    flex: 1;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(131, 50, 197, 0.3) transparent;
    overscroll-behavior-y: none !important; /* DÜZELTME: İçerik kaydırma esnemesi kilitlendi */
}

/* 5. MOBİL ALT BAR */
#mobile-footer {
    display: none;
    flex: 0 0 75px;
    background: var(--glass);
    border-top: 1px solid var(--border);
    z-index: 1000;
}

/* 6. RESPONSIVE AYARLAR */
@media (max-width: 768px) {
    #header { flex: 0 0 75px; }
    .premium-aura-nav { display: none; }
    #mobile-footer { display: block; }
    
    /* MASAÜSTÜNÜ ETKİLEMEDEN SADECE MOBİLDE PROFIL BARINI YUKARI TAŞIR VE ORANTILI KÜÇÜLTÜR */
    .px-glass-header {
        margin-top: -35px !important;
        padding: 20px !important; /* İç boşluğu daraltır */
        gap: 20px !important; /* İç elemanlar arası mesafeyi daraltır */
        border-radius: 28px !important;
    }
    
    /* Profil Fotoğrafını Küçültür */
    .px-glass-header .w-24.h-24 {
        width: 72px !important; 
        height: 72px !important;
    }
    
    /* İsim Başlığını Küçültür */
    .px-glass-header .px-premium-title {
        font-size: 18px !important;
    }
    
    /* Büyük Rakamları (Bakiye, Gelişim vb.) Küçültür */
    .px-glass-header .px-value-text {
        font-size: 20px !important; 
    }
}

/* COIN VE AVATAR STİLLERİ */
.coin-card { 
    border-radius: 16px; 
    border: 1px solid rgba(255,255,255,0.04);
}

.avatar-main { 
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.15);
}

/* BİLDİRİM (TOAST) STİLLERİ - KESİN ÜST ORTA HİZALAMA */
#toast-container {
    position: fixed !important;
    top: 25px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    z-index: 999999 !important; /* Her şeyin üstünde */
    pointer-events: none !important;
}

.px-toast {
    background: rgba(18, 18, 18, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(131, 50, 197, 0.3) !important;
    border-left: 4px solid var(--accent) !important;
    border-radius: 18px !important;
    color: white !important;
    padding: 14px 28px !important;
    margin-bottom: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    box-shadow: 0 15px 45px rgba(0,0,0,0.6) !important;
    pointer-events: auto !important;
    animation: toast-in-v4 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
    min-width: 320px !important;
    max-width: 90vw !important;
}

.px-toast.error {
    border-left-color: #ff4b2b !important;
    border-color: rgba(255, 75, 43, 0.2) !important;
}

@keyframes toast-in-v4 {
    from { opacity: 0; transform: translateY(-100px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out-v4 {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-50px); }
}

/* Mevcut Animasyon FadeIn */
.animate-fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* SCROLLBAR TASARIMI */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { 
    background: rgba(131, 50, 197, 0.3); 
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(131, 50, 197, 0.5); }

/* EKSTRA GÖRSEL DERİNLİK */
.glass-card-demo {
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* 7. YENİ: CHAT SİDEBAR VE OVERLAY STİLLERİ */
#chat-sidebar {
    will-change: transform;
}

#chat-sidebar.open {
    transform: translateX(0);
}

#chat-overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#chat-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.chat-scroll::-webkit-scrollbar { width: 4px; }
.chat-scroll::-webkit-scrollbar-track { background: transparent; }
.chat-scroll::-webkit-scrollbar-thumb { 
    background: rgba(255, 255, 255, 0.1); 
    border-radius: 10px;
}
.chat-scroll::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }

/* END OF STYLESHEET */

/* 🎯 HAKAN: ÇİFTE GÜVENLİK İÇİN CSS MÜDAHALESİ - ARKA PLAN ASLA SARKAMAZ */
body #dynamic-content #crop-modal,
html body #crop-modal {
    top: 95px !important; /* PARAX Header'ı ile 15px (1cm) boşluk! */
    bottom: auto !important; /* Sarkmayı yakan komut */
    height: max-content !important; 
    background: transparent !important; 
    backdrop-filter: none !important;
}

body #dynamic-content #crop-modal > div,
html body #crop-modal > div {
    height: max-content !important;
    background-color: #000000 !important;
}

/* 8. PARA ÇEKME (İKMAL) AKTİF METOT STİLİ */
.active-method {
    border-color: rgba(188, 102, 255, 0.8) !important;
    background: rgba(131, 50, 197, 0.25) !important;
    box-shadow: 0 0 25px rgba(131, 50, 197, 0.3) !important;
    transform: scale(1.02);
}
.active-method p, .active-method i, .active-method span {
    color: white !important;
    text-shadow: 0 0 10px rgba(255,255,255,0.5) !important;
}

/* Metin seçildiğinde oluşan mavi arka planı kaldırır */
::selection {
    background: transparent;
}

/* Tüm elemanlardaki varsayılan odaklanma çerçevesini ve mobil tıklama mavisini kaldırır */
* {
    -webkit-tap-highlight-color: transparent; /* Mobil cihazlardaki tıklama mavisini siler */
    outline: none !important; /* Tıklanan buton veya input etrafındaki mavi çizgiyi siler */
}

/* Resimlerin ve ikonların sürüklenirken veya seçilirken mavi görünmesini engeller */
img, a {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
}
/* Daha önceki user-select kuralını güçlendiriyoruz */
* {
    -webkit-user-select: none; /* Safari, Chrome, Edge */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE, Old Edge */
    user-select: none; /* Standard */
    
    /* Bu kural, sürükleme sırasındaki hayalet görüntüyü engeller (Webkit için) */
    -webkit-user-drag: none; 
}

/* Resimler ve Linkler için spesifik önlem */
img, a {
    -webkit-user-drag: none !important;
    pointer-events: auto; /* Tıklamayı engelleme, sadece sürüklemeyi engelle */
}