.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 75px;
    background: rgba(14, 14, 14, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1002;
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
}

.mobile-nav-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-decoration: none;
    font-family: 'Unbounded', sans-serif;
    font-size: 10px;
    font-weight: 500;
    color: #777;
    transition: color 0.2s;
    padding: 8px;
    border-radius: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-nav-item a:hover,
.mobile-nav-item a.active {
    color: #fff;
}

.mobile-nav-item svg {
    width: 24px;
    height: 24px;
}

.notif-badge-mobile {
    position: absolute;
    top: 5px;
    right: 15%;
    min-width: 16px;
    height: 16px;
    background: #ff3b30;
    color: white;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 800;
    display: none;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #000;
    padding: 0 3px;
    pointer-events: none;
}

.notif-badge-mobile.notif-pulse {
    animation: badgePulseMobile 0.5s ease infinite alternate;
}

@keyframes badgePulseMobile {
    from { transform: scale(1); }
    to { transform: scale(1.3); }
}

.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 11000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.mobile-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85%;
    height: 100%;
    background: #0e0e0e;
    z-index: 11001;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 30px rgba(0,0,0,0.6);
    border-left: 1px solid #222;
}

.mobile-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    padding: 25px 20px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.close-drawer-btn {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 5px;
}
.close-drawer-btn:hover { color: #fff; }

.drawer-content {
    flex: 1;
    padding: 10px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.drawer-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1a1a1a;
    padding: 14px 16px;
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    font-family: 'Unbounded', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}
.drawer-link:hover {
    background-color: #252525;
}

.drawer-link-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.drawer-link-left svg {
    width: 20px;
    height: 20px;
    color: #ccc;
}
.chevron {
    color: #555;
    width: 16px;
    height: 16px;
}

.section-label {
    margin-top: 15px;
    margin-bottom: 5px;
    font-size: 12px;
    color: #888;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.premium-btn {
    background-color: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
}
.premium-btn span {
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,0.3);
    text-underline-offset: 3px;
}
.premium-icon-check {
    color: #888;
}

.drawer-footer {
    margin-top: auto;
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    background-color: #0e0e0e;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

#mobile-user-avatar {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.drawer-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    border-left: 4px solid #fff;
    padding-left: 15px;
    line-height: 1.2;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-nickname {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.user-status {
    font-size: 11px;
    color: #4cd964;
    display: flex;
    align-items: center;
    gap: 4px;
}
.online-dot {
    width: 6px;
    height: 6px;
    background-color: #4cd964;
    border-radius: 50%;
}

.balance-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #161616;
    border: 1px solid #ffd70036;
    border-radius: 14px;
    padding: 12px 16px;
    box-shadow: 0 4px 15px rgb(255 215 0 / 2%);
}

.balance-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.coin-svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.balance-text {
    display: flex;
    flex-direction: column;
}

.balance-label {
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
}

.balance-amount {
    font-size: 16px;
    color: #FFD700;
    font-weight: 700;
    font-family: 'Unbounded', sans-serif;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.add-balance-btn {
    width: 28px;
    height: 28px;
    background: #222;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 1px solid #333;
    cursor: pointer;
}
.add-balance-btn:hover { background: #333; }

.logout-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: 'Unbounded', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}
.logout-btn:hover {
    background-color: #444;
}

@media (max-width: 900px) {
    .mobile-nav { display: block; }
}

/* Hide in landscape mode or short screens where it blocks content */
@media (max-width: 900px) and (max-height: 480px), (orientation: landscape) and (max-width: 900px) {
    .mobile-nav { 
        display: none !important; 
    }
    .page-wrapper {
        padding-bottom: 0 !important;
    }
}

@media (max-width: 360px) {
    .drawer-title { font-size: 16px; }
    .user-nickname { font-size: 14px; }
}
