/* PUBG MARKET ULTIMATE STYLING v5.0
    Design Philosophy: Cyberpunk, Neon-Green, Premium UI/UX
*/

/* 1. O'ZGIRUVCHILAR (THEME SYSTEM) */
:root {
    --primary: #00ff88;
    --primary-rgb: 0, 255, 136;
    --primary-dark: #00cc6d;
    --bg-black: #050608;
    --bg-darker: #0d0f14;
    --bg-glass: rgba(20, 24, 33, 0.85);
    --border-color: rgba(255, 255, 255, 0.06);
    --text-white: #ffffff;
    --text-gray: #a0aec0;
    --accent-yellow: #facc15;
    --danger: #ff4757;
    --shadow-neon: 0 0 20px rgba(0, 255, 136, 0.25);
    --font-main: 'Rajdhani', sans-serif;
    --font-heading: 'Orbitron', sans-serif;
}

/* 2. RESET & GLOBAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

::-webkit-scrollbar { width: 0; display: none; } /* Scrollbar yashirish */

body {
    background: var(--bg-black);
    color: var(--text-white);
    font-family: var(--font-main);
    overflow-x: hidden;
    user-select: none;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none !important; color: inherit; transition: 0.3s; }

/* 3. PRELOADER ANIMATION */
#preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-black);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.5s ease;
}

.spinner {
    width: 60px; height: 60px;
    border: 3px solid rgba(var(--primary-rgb), 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* 4. APP WRAPPER & NAVBAR */
.app-wrapper {
    max-width: 480px; /* Mobil ekran kengligi */
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg-black);
    position: relative;
    box-shadow: 0 0 100px rgba(0,0,0,0.8);
}

.navbar {
    height: 70px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo-text span { color: var(--primary); text-shadow: var(--shadow-neon); }

.burger-menu {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.burger-menu span {
    width: 24px;
    height: 2px;
    background: var(--text-white);
    border-radius: 10px;
    transition: 0.3s;
}

/* 5. SIDEBAR (Dizayn yangilandi) */
.sidebar {
    position: fixed;
    top: 0;
    left: -100% !important;
    width: 300px;
    height: 100%;
    background: var(--bg-darker);
    z-index: 3000;
    padding: 30px 20px;
    transition: 0.5s cubic-bezier(0.85, 0, 0.15, 1);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
}

.sidebar.active { left: 0 !important; }

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.sidebar-nav { flex: 1; }

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 8px;
    color: var(--text-gray);
    font-weight: 600;
    font-size: 16px;
}

.sidebar-nav a i { font-size: 20px; color: var(--primary); opacity: 0.8; }
.sidebar-nav a.active {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.badge-new {
    background: var(--danger);
    color: #fff;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: auto;
}

/* 6. USER PROFILE IN SIDEBAR */
.sidebar-footer {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.side-profile-item {
    background: rgba(255,255,255,0.03);
    padding: 15px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border-color);
}

.side-avatar-box {
    width: 50px; height: 50px;
    border-radius: 15px;
    border: 2px solid var(--primary);
    overflow: hidden;
}

.side-avatar-box img { width: 100%; height: 100%; object-fit: cover; }

.side-user-text span { display: block; font-weight: 700; color: #fff; }
.side-user-text small { color: var(--accent-yellow); font-size: 12px; font-weight: 700; }

/* 7. DINAMIK BANNER AREA */
.main-banner-container {
    width: 92%;
    height: 190px;
    margin: 20px auto;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.banner-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: var(--text-gray);
    background: var(--bg-darker);
}

.banner-img img, .banner-video iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-text {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

.banner-text h2 { font-size: 1.1rem; text-transform: uppercase; font-family: var(--font-heading); }

/* 8. UC GRID & PACKAGE CARDS */
.main-section { padding: 0 18px; margin-top: 25px; }

.section-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-top h3 { font-family: var(--font-heading); font-size: 0.9rem; letter-spacing: 1px; }
.view-all { color: var(--primary); font-size: 0.8rem; font-weight: 700; }

.uc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.uc-card {
    background: var(--bg-darker);
    border-radius: 20px;
    padding: 20px 10px;
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
    transition: 0.3s;
}

.uc-card.active {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.03);
    box-shadow: var(--shadow-neon);
}

.uc-img { margin-bottom: 10px; filter: drop-shadow(0 5px 10px rgba(0,0,0,0.5)); }

.uc-card h4 { font-size: 0.9rem; margin-bottom: 5px; color: var(--text-white); }
.uc-card .price { font-size: 0.8rem; font-weight: 700; color: var(--accent-yellow); }

.hot-label {
    position: absolute;
    top: -10px; left: 50%; transform: translateX(-50%);
    background: var(--danger);
    color: #fff; font-size: 8px; font-weight: 900;
    padding: 3px 10px; border-radius: 8px;
}

/* 9. PREMIUM AKKAUNTLAR LISTI */
.acc-card {
    background: var(--bg-darker);
    border-radius: 22px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: 0.3s;
}

.acc-img-wrapper { height: 170px; width: 100%; position: relative; }
.acc-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }

.acc-tag {
    position: absolute; bottom: 10px; left: 10px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    padding: 4px 12px; border-radius: 10px;
    font-size: 11px; font-weight: 700; color: var(--primary);
}

.acc-info { padding: 18px; }

.acc-title-row {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 8px;
}

.acc-title-row h4 { font-size: 1.1rem; color: #fff; font-family: var(--font-heading); }
.acc-price-badge { color: var(--accent-yellow); font-weight: 800; font-size: 1rem; }

.acc-desc { font-size: 13px; color: var(--text-gray); margin-bottom: 12px; }

.acc-stats { display: flex; gap: 15px; border-top: 1px solid var(--border-color); padding-top: 12px; }
.acc-stats span { font-size: 12px; color: var(--text-white); font-weight: 600; }
.acc-stats i { color: var(--primary); margin-right: 5px; }

/* 10. ONLINE STATUS INDICATOR */
.online-status {
    display: flex; align-items: center; gap: 6px;
    background: rgba(var(--primary-rgb), 0.1);
    padding: 4px 12px; border-radius: 20px;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.online-status .dot {
    width: 6px; height: 6px; background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

#menuOnlineCount { font-size: 11px; font-weight: 700; color: var(--primary); transition: 0.3s; }

/* 11. LIVE TOAST NOTIFICATION */
.live-toast {
    position: fixed;
    bottom: -100px; left: 20px; right: 20px;
    background: rgba(13, 15, 20, 0.98);
    border: 1px solid var(--primary);
    padding: 15px; border-radius: 20px;
    display: flex; align-items: center; gap: 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    z-index: 9999;
    transition: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.live-toast.show { bottom: 30px; }

.toast-icon {
    width: 45px; height: 45px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 14px;
    display: flex; justify-content: center; align-items: center;
    font-size: 20px;
}

/* 12. OVERLAY & ANIMATIONS */
.overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    z-index: 2500;
    display: none;
    opacity: 0;
    transition: 0.4s;
}

.overlay.active { display: block; opacity: 1; }

/* Tab Animation */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 13. MOBIL MOSLASHUV (ADDITIONAL) */
@media screen and (max-width: 360px) {
    .uc-grid { gap: 8px; }
    .uc-card { padding: 15px 5px; }
    .logo-text { font-size: 1rem; }
}
