/* mobile.css - Premium App UI overrides for Mobile & Tablet */
/* Loaded only on max-width: 992px via media query in HTML */

body {
    overflow-x: hidden;
    background-color: #050505; /* Deeper dark for premium OLED feel */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlights */
}

/* Hide Desktop Elements */
.sidebar-left, .header-actions .btn-sell, .header-actions .user-profile, .header-actions .btn-play-premium, .sidebar-promo, .header-actions .icon-group {
    display: none !important;
}

/* --- APP TOP BAR (Header) --- */
.top-bar {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 15px 20px !important;
    margin: 0 -15px 20px -15px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px !important;
}

.btn-menu {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
}

.btn-menu i, .btn-menu svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

/* Make Search Bar Expand & App-like */
.search-container {
    width: 100% !important;
    max-width: 100% !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-radius: 20px !important;
    padding: 10px 15px !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    margin-right: 15px;
}

.header-actions {
    gap: 15px !important;
}

.icon-group {
    gap: 15px !important;
}

/* --- MAIN CONTENT & LAYOUT --- */
.main-content {
    padding: 0 15px 100px 15px !important; /* Extra padding for bottom nav */
}

/* Hero Section App Style */
.hero-section {
    flex-direction: column;
    height: auto !important;
    padding: 30px 20px !important;
    text-align: center;
    border-radius: 24px !important;
    background: linear-gradient(135deg, rgba(236,72,153,0.1) 0%, rgba(10,10,10,1) 100%), url('assets/premium_app_bg.jpg') center/cover no-repeat !important;
    border: 1px solid rgba(255,0,122,0.2) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-text {
    max-width: 100% !important;
    z-index: 2;
    margin-bottom: 20px;
}

.hero-text h1 {
    font-size: 32px !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-text p {
    font-size: 12px !important;
    color: #ccc !important;
}

.hero-buttons {
    justify-content: center;
    flex-direction: column;
    gap: 10px !important;
}

.hero-buttons button, .hero-buttons a {
    width: 100%;
    justify-content: center;
    padding: 12px 15px !important;
    font-size: 14px !important;
    border-radius: 12px !important;
}

.hero-image {
    display: none !important; /* Hide giant hero image on mobile to save space, rely on background */
}

/* Section Headers */
.section-header {
    padding: 0 5px !important;
    margin-bottom: 20px !important;
}

/* Grids to Single/Double Columns */
.stats-bar {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
}

.stat-item {
    padding: 15px !important;
    flex-direction: column;
    text-align: center;
    gap: 10px !important;
    border-radius: 16px !important;
    background: rgba(24, 24, 24, 0.6) !important;
    backdrop-filter: blur(10px);
}

/* Swipeable Horizontal Lists (App Store Style) */
.accounts-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px !important;
    padding-bottom: 15px;
    margin: 0 -15px 30px -15px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    -webkit-overflow-scrolling: touch;
}

.accounts-grid::-webkit-scrollbar {
    display: none; /* Hide scrollbar */
}

.account-card {
    flex: 0 0 240px; /* Fixed width for cards in slider */
    scroll-snap-align: center;
    border-radius: 20px !important;
}

@media (max-width: 380px) {
    .account-card {
        flex: 0 0 85%;
    }
}

/* Popular Games Scrolling */
.games-row {
    padding-bottom: 15px;
    -webkit-overflow-scrolling: touch;
    margin: 0 -15px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}
.games-row::-webkit-scrollbar {
    display: none;
}

/* Bottom Information Footer */
.bottom-info {
    flex-direction: column;
    gap: 20px;
    padding: 25px !important;
    text-align: center;
    background: rgba(17, 17, 17, 0.8) !important;
    backdrop-filter: blur(10px);
}

.info-item {
    flex-direction: column;
    gap: 10px !important;
}

/* Right Sidebar (Mobile Profile) */
.sidebar-right {
    width: 85% !important;
    max-width: 320px;
    background: rgba(18, 18, 18, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* --- APP BOTTOM NAVIGATION --- */
.bottom-nav-mobile {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 75px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 999;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px 10px 10px; /* Safe area for modern phones */
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.nav-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    gap: 4px;
    transition: all 0.3s ease;
    width: 20%;
    position: relative;
}

.nav-tab i, .nav-tab svg {
    width: 22px;
    height: 22px;
}

.nav-tab.active {
    color: #ff007a;
}

.nav-tab.active::after {
    content: '';
    position: absolute;
    top: -12px;
    width: 40px;
    height: 3px;
    background: #ff007a;
    border-radius: 3px;
    box-shadow: 0 2px 10px rgba(255,0,122,0.5);
}

.nav-tab.premium-play {
    position: relative;
    top: -20px;
    color: #fff;
    font-weight: 800;
}

.premium-play-btn {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.6);
    margin-bottom: 4px;
    border: 4px solid #0a0a0a;
    animation: pulseGlow 2s infinite;
}

.premium-play-btn i, .premium-play-btn svg {
    color: #fff;
    width: 28px;
    height: 28px;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(236, 72, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0); }
}

/* ------------------------------------- */
/* Inner Pages App Adjustments           */
/* ------------------------------------- */

table {
    display: block;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
}

.transaction-list, .order-list {
    flex-direction: column !important;
}

.transaction-item, .order-item, .history-item {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 10px;
    padding: 15px !important;
    background: rgba(24, 24, 24, 0.6) !important;
    border-radius: 12px !important;
    margin-bottom: 10px !important;
}

.transaction-item > div, .order-item > div {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.tabs, .category-tabs, .filter-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    margin: 0 -15px !important;
    padding-left: 15px !important;
}
.tabs::-webkit-scrollbar, .category-tabs::-webkit-scrollbar, .filter-tabs::-webkit-scrollbar {
    display: none;
}

.settings-form, .contact-form, .affiliate-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group, .input-group {
    width: 100% !important;
}

input[type="text"], input[type="email"], input[type="password"], textarea, select {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    background: rgba(255,255,255,0.05) !important;
    border-radius: 12px !important;
    padding: 12px 15px !important;
}

.content-block, .wallet-card, .affiliate-card, .ticket-card {
    padding: 20px 15px !important;
    width: 100% !important;
    border-radius: 20px !important;
}

.two-col-layout {
    display: flex;
    flex-direction: column !important;
    gap: 20px !important;
}
