/* ============================================================
   AKUGAME - Mobile Stylesheet
   ============================================================ */

/* === Default: hide mobile-only components on desktop === */
.mobile-action-bar {
    display: none;
}

.mobile-bottom-nav {
    display: none;
}

.mobile-category-bar {
    display: none;
}

/* ============ TABLET (max-width: 1024px) ============ */
@media (max-width: 1024px) {
    .menu-toggle {
        display: block;
    }

    /* Sidebar drawer from right */
    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        right: -280px;
        width: 280px !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: rgba(10,10,26,1) !important;
        z-index: 1002 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        transition: right 0.3s ease;
        overflow-y: auto;
        border-left: 1px solid rgba(255,255,255,0.06);
        box-shadow: -5px 0 30px rgba(0,0,0,0.5);
        gap: 0 !important;
        flex: none !important;
    }

    .nav-menu.active {
        right: 0 !important;
        display: flex !important;
    }

    /* Overlay backdrop */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.6);
        z-index: 1001;
    }

    .nav-overlay.active {
        display: block;
    }

    body.menu-open {
        overflow: hidden;
    }

    /* Sidebar header: logo pinggir kiri, close pinggir kanan */
    .nav-sidebar-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 14px 14px 14px 18px !important;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .nav-sidebar-header .logo {
        font-size: 1.2rem;
        margin-right: auto;
    }

    .nav-close {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.08);
        color: #fff;
        font-size: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .nav-close:hover {
        background: rgba(255,68,68,0.2);
        border-color: rgba(255,68,68,0.3);
    }

    /* Sidebar auth buttons - sebaris, centered */
    .nav-sidebar-auth {
        display: flex;
        flex-direction: row;
        gap: 8px;
        padding: 16px 18px;
        justify-content: center;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .btn-sidebar-login {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 10px 8px;
        border: 1px solid rgba(0,240,255,0.4);
        border-radius: 8px;
        color: var(--accent-cyan);
        font-weight: 600;
        font-size: 0.82rem;
        background: transparent;
    }

    .btn-sidebar-register {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 10px 8px;
        border: none;
        border-radius: 8px;
        background: var(--gradient-warm);
        color: #0a0a1a;
        font-weight: 700;
        font-size: 0.82rem;
    }

    /* Sidebar nav links - rata pinggir kiri */
    .nav-sidebar-links {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 8px 0 !important;
        flex: 1;
        gap: 0 !important;
    }

    .nav-sidebar-links a {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        text-align: left !important;
        gap: 12px !important;
        padding: 13px 18px !important;
        color: rgba(255,255,255,0.6) !important;
        font-size: 0.88rem !important;
        font-weight: 500 !important;
        border-bottom: 1px solid rgba(255,255,255,0.03) !important;
        border-radius: 0 !important;
        white-space: normal !important;
        width: 100% !important;
        transition: all 0.2s ease;
    }

    .nav-sidebar-links a:hover,
    .nav-sidebar-links a.active {
        color: var(--accent-cyan);
        background: rgba(0,240,255,0.05);
    }

    .nav-sidebar-links a i {
        width: 22px;
        text-align: center;
        font-size: 0.95rem;
    }

    .nav-hide-desktop {
        display: flex !important;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .esports-grid {
        grid-template-columns: 1fr 1fr;
    }

    .poker-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============ MOBILE (max-width: 768px) ============ */
@media (max-width: 768px) {

    /* --- Base --- */
    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .section-spacing {
        padding: 24px 0;
    }

    /* --- Top Bar --- */
    .top-bar {
        display: none;
    }

    /* --- Navbar --- */
    .navbar {
        position: fixed;
        border-bottom: 1px solid rgba(180,74,255,0.15);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(10,10,26,1);
    }

    .navbar .container {
        height: 50px;
    }

    body {
        padding-top: 50px;
    }

    .logo {
        font-size: 1.15rem;
        letter-spacing: 1px;
    }

    .btn-login,
    .btn-register {
        display: none;
    }

    .nav-actions {
        gap: 8px;
    }

    .menu-toggle {
        font-size: 1.2rem;
        padding: 6px;
    }

    /* --- Banner Slider --- */
    .banner-slider {
        border-radius: 0;
    }

    .banner-img {
        min-height: 160px;
        max-height: 300px;
        object-fit: cover;
    }

    .slider-arrow {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
        background: rgba(0,0,0,0.5);
    }

    .slider-arrow.prev { left: 6px; }
    .slider-arrow.next { right: 6px; }

    .slider-dots {
        bottom: 8px;
        gap: 4px;
    }

    .slider-dots .dot {
        width: 6px;
        height: 6px;
    }

    .slider-dots .dot.active {
        width: 20px;
        border-radius: 3px;
    }

    /* --- Mobile Action Bar (marquee + login/daftar below banner) --- */
    .mobile-action-bar {
        display: block;
    }

    .mobile-marquee {
        background: rgba(0,0,0,0.4);
        padding: 8px 16px;
        overflow: hidden;
        border-bottom: 1px solid rgba(255,255,255,0.04);
    }

    .mobile-marquee .marquee-content {
        display: flex;
        align-items: center;
        gap: 10px;
        animation: marqueeScroll 25s linear infinite;
        white-space: nowrap;
    }

    .mobile-marquee .marquee-content span {
        font-size: 0.7rem;
        color: var(--text-secondary);
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }

    .mobile-marquee .winner-name {
        color: var(--accent-gold);
        font-weight: 600;
    }

    .mobile-marquee .winner-amount {
        color: var(--accent-green);
        font-weight: 700;
    }

    .mobile-marquee .separator {
        color: var(--text-muted);
        margin: 0 8px;
    }

    .mobile-auth-buttons {
        display: flex;
        gap: 10px;
        padding: 10px 16px;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
    }

    .btn-mobile-login {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 10px;
        border: 1px solid rgba(0,240,255,0.4);
        border-radius: 8px;
        color: var(--accent-cyan);
        font-size: 0.82rem;
        font-weight: 600;
        background: transparent;
        transition: all 0.3s ease;
    }

    .btn-mobile-register {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 10px;
        border: none;
        border-radius: 8px;
        background: var(--gradient-warm);
        color: #0a0a1a;
        font-size: 0.82rem;
        font-weight: 700;
        transition: all 0.3s ease;
    }

    /* --- Mobile Category Bar --- */
    .mobile-category-bar {
        display: flex;
        align-items: center;
        background: rgba(15,15,35,0.95);
        border-top: 1px solid rgba(255,255,255,0.04);
        border-bottom: 1px solid rgba(255,255,255,0.06);
        padding: 0;
        position: relative;
        margin-bottom: 16px;
    }

    .cat-arrow {
        flex-shrink: 0;
        width: 28px;
        height: 100%;
        min-height: 60px;
        background: rgba(0,0,0,0.3);
        border: none;
        color: rgba(255,255,255,0.5);
        font-size: 0.65rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2;
    }

    .cat-arrow:active {
        background: rgba(255,255,255,0.05);
    }

    .cat-scroll {
        display: flex;
        overflow-x: auto;
        scroll-behavior: smooth;
        flex: 1;
        gap: 0;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .cat-scroll::-webkit-scrollbar {
        display: none;
    }

    .cat-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 10px 14px;
        min-width: 72px;
        color: rgba(255,255,255,0.5);
        font-size: 0.58rem;
        font-weight: 600;
        letter-spacing: 0.5px;
        text-decoration: none;
        white-space: nowrap;
        transition: all 0.2s ease;
        border-bottom: 2px solid transparent;
    }

    .cat-item .cat-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        background: rgba(255,255,255,0.06);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        transition: all 0.2s ease;
    }

    .cat-item.active {
        color: var(--accent-gold);
        border-bottom-color: var(--accent-gold);
    }

    .cat-item.active .cat-icon {
        background: rgba(255,202,40,0.15);
        color: var(--accent-gold);
    }

    /* --- Section Headers --- */
    .section-header {
        margin-bottom: 12px;
        gap: 6px;
    }

    .section-title {
        font-size: 0.95rem;
        gap: 6px;
    }

    .section-title i {
        font-size: 0.85rem;
    }

    .see-all {
        font-size: 0.72rem;
    }

    /* --- Tabs --- */
    .category-tabs {
        gap: 5px;
        margin-bottom: 12px;
        padding-bottom: 4px;
    }

    .tab-item {
        padding: 6px 12px;
        font-size: 0.68rem;
        border-radius: 16px;
    }

    .tab-item i {
        font-size: 0.7rem;
    }

    .provider-tabs {
        gap: 5px;
        margin-bottom: 12px;
    }

    .provider-tab {
        padding: 6px 10px;
        font-size: 0.65rem;
    }

    /* --- Game Cards (3 columns, compact) --- */
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .games-grid.grid-6 {
        grid-template-columns: repeat(3, 1fr);
    }

    .game-card {
        border-radius: 8px;
        border-width: 0;
    }

    .game-card:hover {
        transform: none;
        box-shadow: none;
    }

    .game-card:hover .game-thumb-img {
        transform: none;
    }

    .game-card:hover .overlay-btns {
        transform: none;
        opacity: 0;
    }

    .game-thumb {
        aspect-ratio: 3/4;
    }

    .game-badge {
        top: 4px;
        left: 4px;
        padding: 1px 5px;
        font-size: 0.48rem;
        letter-spacing: 0.3px;
        border-radius: 6px;
    }

    .game-overlay {
        display: none;
    }

    .game-info {
        padding: 6px 7px 5px;
    }

    .game-title {
        font-size: 0.68rem;
        margin-bottom: 2px;
    }

    .game-meta {
        gap: 2px;
    }

    .game-provider {
        font-size: 0.55rem;
    }

    .game-rating {
        font-size: 0.58rem;
        gap: 2px;
    }

    .game-rating i {
        font-size: 0.48rem;
    }

    .rtp-bar {
        display: none;
    }

    /* --- Winners --- */
    .winners-section {
        padding: 12px;
        border-radius: 10px;
    }

    .winner-list {
        gap: 6px;
    }

    .winner-item {
        padding: 8px 10px;
        gap: 8px;
        border-radius: 8px;
    }

    .winner-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .winner-name {
        font-size: 0.75rem;
    }

    .winner-game {
        font-size: 0.65rem;
    }

    .winner-amount {
        font-size: 0.78rem;
    }

    /* --- Promo Banner --- */
    .promo-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px 14px;
        gap: 14px;
        border-radius: 12px;
    }

    .promo-tag {
        font-size: 0.62rem;
        padding: 4px 10px;
        margin-bottom: 8px;
    }

    .promo-content h2 {
        font-size: 1.05rem;
    }

    .promo-content p {
        font-size: 0.78rem;
        margin-bottom: 14px;
    }

    .promo-emoji {
        font-size: 2.5rem;
    }

    /* --- Match Cards --- */
    .match-cards {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .match-card {
        padding: 14px;
        border-radius: 10px;
    }

    .match-league {
        font-size: 0.65rem;
        margin-bottom: 10px;
    }

    .team-logo {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .team-name {
        font-size: 0.72rem;
    }

    .match-vs {
        font-size: 0.85rem;
    }

    .match-time {
        font-size: 0.7rem;
        padding-top: 10px;
    }

    /* --- Casino Grid --- */
    .casino-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .casino-card {
        border-radius: 8px;
    }

    .casino-card:hover {
        transform: none;
    }

    .casino-thumb {
        height: 100px;
        font-size: 1.8rem;
    }

    .casino-info {
        padding: 8px;
    }

    .casino-info h3 {
        font-size: 0.75rem;
        margin-bottom: 3px;
    }

    .casino-players,
    .casino-provider-name {
        font-size: 0.62rem;
    }

    .casino-live-indicator {
        font-size: 0.55rem;
        padding: 2px 6px;
        top: 6px;
        right: 6px;
    }

    /* --- Crash Grid --- */
    .crash-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .crash-card {
        border-radius: 8px;
    }

    .crash-card:hover {
        transform: none;
    }

    .crash-visual {
        height: 100px;
        font-size: 2rem;
    }

    .crash-multiplier {
        font-size: 0.68rem;
        padding: 2px 8px;
        bottom: 6px;
        right: 6px;
    }

    .crash-info {
        padding: 8px;
    }

    .crash-info h3 {
        font-size: 0.78rem;
    }

    .crash-info p {
        font-size: 0.65rem;
    }

    /* --- Poker Grid --- */
    .poker-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .poker-card {
        padding: 14px;
        border-radius: 10px;
    }

    .poker-card:hover {
        transform: none;
    }

    .poker-header {
        margin-bottom: 10px;
    }

    .poker-card h3 {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }

    .poker-details {
        gap: 12px;
        margin-bottom: 12px;
    }

    /* --- Esports Grid --- */
    .esports-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .esports-card {
        border-radius: 10px;
    }

    .esports-card:hover {
        transform: none;
    }

    .esports-banner {
        height: 90px;
        font-size: 1.8rem;
    }

    .esports-body {
        padding: 12px;
    }

    .esports-body h3 {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }

    .esports-team-logo {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .esports-team-name {
        font-size: 0.72rem;
    }

    /* --- Promo Cards --- */
    .promo-cards {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .promo-cards-scroll {
        display: flex;
        overflow-x: auto;
        gap: 12px;
        scroll-snap-type: x mandatory;
        -ms-overflow-style: none;
        scrollbar-width: none;
        padding-bottom: 4px;
    }

    .promo-cards-scroll::-webkit-scrollbar {
        display: none;
    }

    .promo-cards-scroll .promo-card {
        min-width: 260px;
        max-width: 280px;
        flex-shrink: 0;
        scroll-snap-align: start;
    }

    .promo-cards-scroll .promo-card-img {
        height: auto;
    }

    .promo-card {
        border-radius: 10px;
        cursor: pointer;
    }

    .promo-card:hover {
        transform: none;
    }

    .promo-card-img {
        height: auto;
    }

    .promo-card-body {
        padding: 12px;
    }

    .promo-card-body h3 {
        font-size: 0.88rem;
        margin-bottom: 4px;
    }

    .promo-card-body p {
        font-size: 0.75rem;
        margin-bottom: 10px;
        line-height: 1.5;
    }

    .promo-card-meta {
        padding-top: 8px;
    }

    .promo-card-meta span {
        font-size: 0.65rem;
    }

    /* --- App Download --- */
    .app-section {
        flex-direction: column;
        padding: 20px 14px;
        text-align: center;
        gap: 14px;
        border-radius: 12px;
    }

    .app-info h2 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .app-info p {
        font-size: 0.78rem;
        margin-bottom: 14px;
    }

    .app-buttons {
        justify-content: center;
        gap: 8px;
    }

    .app-preview {
        display: none !important;
    }

    /* --- Features --- */
    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .feature-card {
        padding: 14px;
        border-radius: 10px;
    }

    .feature-card:hover {
        transform: none;
    }

    .feature-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        margin-bottom: 8px;
        border-radius: 8px;
    }

    .feature-card h3 {
        font-size: 0.78rem;
        margin-bottom: 4px;
    }

    .feature-card p {
        font-size: 0.68rem;
        line-height: 1.4;
    }

    /* --- Stats --- */
    .stats-bar {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .stat-card {
        padding: 14px;
        border-radius: 8px;
    }

    .stat-number {
        font-size: 1.2rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    /* --- Auth Pages --- */
    .auth-page {
        padding: 16px 10px;
        min-height: calc(100vh - 56px);
    }

    .auth-wrapper {
        flex-direction: column;
        max-width: 440px;
        min-height: auto;
        border: none;
        background: transparent;
    }

    .auth-brand {
        display: none;
    }

    .auth-card {
        padding: 24px 18px;
        border-radius: 14px;
        max-width: 100%;
        border: 1px solid var(--border-color);
        border-radius: 14px;
    }

    .auth-card .logo {
        display: block;
        font-size: 1.5rem;
    }

    .auth-card h2 {
        font-size: 1.1rem;
    }

    .auth-subtitle {
        font-size: 0.78rem;
        margin-bottom: 20px;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .form-group label {
        font-size: 0.75rem;
        margin-bottom: 5px;
    }

    .form-group input,
    .form-group select {
        padding: 10px 12px;
        font-size: 0.82rem;
        border-radius: 8px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .auth-btn {
        padding: 12px;
        font-size: 0.88rem;
    }

    /* --- About Page Responsive --- */
    .about-hero {
        padding: 24px 16px !important;
        border-radius: 12px !important;
        margin-bottom: 20px !important;
    }

    .about-hero h2 {
        font-size: 1.2rem !important;
    }

    .about-hero p {
        font-size: 0.82rem !important;
    }

    .about-hero .about-logo-box {
        width: 70px !important;
        height: 70px !important;
        border-radius: 16px !important;
        margin-bottom: 14px !important;
    }

    .about-hero .about-logo-box span {
        font-size: 1.6rem !important;
    }

    .about-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        margin-bottom: 20px !important;
    }

    .about-stats-grid > div {
        padding: 14px 10px !important;
        border-radius: 10px !important;
    }

    .about-stats-grid .stat-icon {
        width: 36px !important;
        height: 36px !important;
        border-radius: 10px !important;
        margin-bottom: 8px !important;
    }

    .about-stats-grid .stat-icon i {
        font-size: 0.9rem !important;
    }

    .about-stats-grid .stat-value {
        font-size: 1.2rem !important;
    }

    .about-stats-grid .stat-label {
        font-size: 0.68rem !important;
    }

    .about-vm-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        margin-bottom: 20px !important;
    }

    .about-vm-grid > div {
        padding: 20px 16px !important;
        border-radius: 12px !important;
    }

    .about-keunggulan-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        margin-bottom: 20px !important;
    }

    .about-keunggulan-grid > div {
        padding: 16px !important;
        border-radius: 10px !important;
    }

    .about-lisensi {
        padding: 16px !important;
        margin-bottom: 30px !important;
        border-radius: 10px !important;
        flex-direction: row !important;
        gap: 12px !important;
    }

    .about-lisensi .lisensi-icon {
        width: 40px !important;
        height: 40px !important;
    }

    /* --- Page Header --- */
    .page-header {
        padding: 16px 0 12px;
        margin-bottom: 14px;
    }

    .page-header h1 {
        font-size: 1.2rem;
        margin-bottom: 3px;
    }

    .page-header p {
        font-size: 0.75rem;
    }

    /* --- Referral Page Mobile --- */
    .referral-desktop-layout {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .referral-sidebar {
        position: static;
    }

    .referral-stats-grid {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 10px;
        margin-bottom: 16px;
    }

    .breadcrumb {
        font-size: 0.68rem;
        margin-bottom: 8px;
    }

    /* --- Search Bar --- */
    .search-bar {
        max-width: 100%;
        margin-bottom: 12px;
    }

    .search-bar input {
        padding: 9px 14px 9px 34px;
        font-size: 0.78rem;
    }

    .search-bar i {
        left: 10px;
        font-size: 0.78rem;
    }

    /* --- Slot Page --- */
    .slot-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 16px;
    }

    .slot-page-header h1 {
        font-size: 1.15rem;
    }

    .slot-page-header p {
        font-size: 0.75rem;
    }

    .slot-page-header .search-bar {
        max-width: 100%;
        width: 100%;
    }

    .slot-provider-filter {
        gap: 8px;
        margin-bottom: 12px;
    }

    .provider-icon-tab {
        width: 90px;
        height: 60px;
        border-radius: 10px;
        padding: 0;
    }

    .provider-icon-img {
        width: 100%;
        height: 100%;
        border-radius: 0;
        font-size: 1.2rem;
    }

    .slot-sort-tabs {
        gap: 5px;
        margin-bottom: 12px;
    }

    .sort-tab {
        padding: 5px 10px;
        font-size: 0.68rem;
    }

    .slot-count {
        font-size: 0.68rem;
    }

    .grid-slots {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px;
    }

    /* --- Footer --- */
    .footer {
        margin-top: 20px;
        padding-bottom: 70px;
        display: flex;
        flex-direction: column;
    }

    .footer .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .footer-payments {
        order: 1;
    }

    .footer-providers {
        order: 2;
    }

    .footer-main {
        order: 3;
        padding: 24px 0 16px;
    }

    .footer-bottom {
        order: 4;
    }

    .footer-main {
        padding: 20px 0 16px !important;
    }

    .footer-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }

    .footer-brand {
        text-align: left !important;
        padding-bottom: 18px !important;
        margin-bottom: 18px !important;
        border-bottom: 1px solid var(--border-color) !important;
    }

    .footer-brand .logo {
        font-size: 1.3rem !important;
    }

    .footer-brand p {
        font-size: 0.72rem !important;
        margin: 8px 0 14px !important;
        line-height: 1.6 !important;
        color: var(--text-secondary) !important;
    }

    .social-links {
        justify-content: flex-start !important;
        gap: 8px !important;
    }

    .social-links a {
        width: 34px !important;
        height: 34px !important;
        font-size: 0.8rem !important;
    }

    .footer-col {
        padding: 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.04) !important;
        padding-bottom: 14px !important;
        margin-bottom: 14px !important;
    }

    .footer-col:last-child {
        border-bottom: none !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    .footer-col h4 {
        font-size: 0.72rem !important;
        font-weight: 700 !important;
        margin-bottom: 8px !important;
        color: var(--accent-cyan) !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }

    .footer-col a {
        display: inline-block !important;
        font-size: 0.72rem !important;
        padding: 3px 0 !important;
        color: var(--text-secondary) !important;
        margin-right: 16px !important;
    }

    .footer-payments,
    .footer-providers {
        padding: 16px 0 !important;
        text-align: left !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .footer-payments.container,
    .footer-providers.container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .footer-payments h4 {
        font-size: 0.7rem !important;
        margin-bottom: 10px !important;
        text-align: left !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
    }

    .footer-providers h4 {
        font-size: 0.7rem !important;
        margin-bottom: 10px !important;
        text-align: left !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
    }

    .payment-grid {
        display: grid !important;
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 8px !important;
        justify-content: start !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .payment-item {
        padding: 8px 4px !important;
        font-size: 0.62rem !important;
    }

    .payment-item img {
        height: 20px !important;
        width: auto !important;
    }

    .provider-logos {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        gap: 6px !important;
    }

    .provider-logo {
        font-size: 0.58rem !important;
        padding: 5px 10px !important;
    }

    .provider-logos {
        gap: 5px;
    }

    .provider-logo {
        padding: 5px 10px;
        font-size: 0.58rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: left;
        gap: 8px;
        padding: 14px 0;
    }

    .footer-bottom p {
        font-size: 0.68rem;
    }

    .footer-badges {
        gap: 6px;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .footer-badges span {
        font-size: 0.62rem;
        padding: 4px 10px;
    }

    /* --- Buttons --- */
    .btn {
        padding: 9px 18px;
        font-size: 0.78rem;
        gap: 5px;
    }

    .btn-sm {
        padding: 6px 12px;
        font-size: 0.68rem;
    }

    .btn-lg {
        padding: 11px 24px;
        font-size: 0.85rem;
    }

    /* --- Promo Modal (bottom sheet) --- */
    .promo-modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .promo-modal {
        max-height: 92vh;
        border-radius: 14px 14px 0 0;
        max-width: 100%;
    }

    .promo-modal-close {
        width: 28px;
        height: 28px;
        top: 8px;
        right: 8px;
        font-size: 0.78rem;
    }

    .promo-modal-body {
        padding: 14px;
    }

    .promo-modal-body h2 {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }

    .promo-modal-body .pm-desc {
        font-size: 0.78rem;
        line-height: 1.6;
        margin-bottom: 14px;
    }

    .promo-modal-body .pm-terms-title {
        font-size: 0.72rem;
    }

    .promo-modal-body .pm-terms {
        font-size: 0.72rem;
        line-height: 1.6;
    }

    .promo-modal-footer {
        padding: 0 14px 14px;
        flex-direction: column;
        gap: 6px;
    }

    /* --- Jackpot (if used) --- */
    .jp-border {
        flex-direction: column;
        padding: 14px 12px;
        gap: 10px;
        text-align: center;
    }

    .jp-logo-area {
        flex-direction: row;
        gap: 8px;
        min-width: auto;
    }

    .jp-logo-icon {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }

    .jp-value {
        font-size: 1.3rem;
    }

    .jp-amount-box {
        padding: 8px 14px;
    }

    .jp-cur {
        font-size: 0.78rem;
    }

    /* ========== MOBILE FIXED BOTTOM NAV ========== */
    .mobile-bottom-nav {
        display: flex !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
    }
}

/* ============ SMALL PHONE (max-width: 380px) ============ */
@media (max-width: 380px) {
    .about-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }

    .about-stats-grid .stat-value {
        font-size: 1rem !important;
    }

    .about-hero {
        padding: 20px 14px !important;
    }

    .about-hero h2 {
        font-size: 1.05rem !important;
    }

    .about-hero p {
        font-size: 0.78rem !important;
    }

    .container {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .section-spacing {
        padding: 20px 0;
    }

    .section-title {
        font-size: 0.88rem;
    }

    .games-grid,
    .games-grid.grid-6 {
        gap: 5px;
    }

    .game-card {
        border-radius: 6px;
    }

    .game-badge {
        padding: 1px 4px;
        font-size: 0.42rem;
    }

    .game-info {
        padding: 4px 5px 2px;
    }

    .game-title {
        font-size: 0.6rem;
    }

    .rtp-bar {
        display: none;
    }

    .casino-thumb {
        height: 80px;
    }

    .crash-visual {
        height: 80px;
        font-size: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .feature-card {
        padding: 12px;
        display: flex;
        gap: 10px;
        align-items: flex-start;
    }

    .feature-icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .banner-img {
        min-height: 120px;
        max-height: 200px;
    }

    .btn {
        padding: 8px 14px;
        font-size: 0.72rem;
    }

    .mobile-auth-buttons {
        gap: 6px;
        padding: 6px 8px;
    }

    .btn-mobile-login,
    .btn-mobile-register {
        padding: 8px;
        font-size: 0.75rem;
    }
}

/* ============ BOTTOM NAV BASE STYLES ============ */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 997;
    background: linear-gradient(180deg, rgba(15,15,35,0.97), rgba(10,10,26,0.99));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    align-items: flex-end;
    height: 62px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}

.mobile-bottom-nav > * {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    max-width: 20% !important;
}

/* Regular nav items */
.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 0;
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    transition: color 0.2s ease;
    height: 100%;
}

.bottom-nav-item i {
    font-size: 1.15rem;
    transition: all 0.2s ease;
}

.bottom-nav-item span {
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.bottom-nav-item.active {
    color: var(--accent-gold);
}

.bottom-nav-item.active i {
    text-shadow: 0 0 10px rgba(255,202,40,0.4);
}

/* Center raised button (KASIR) */
.bottom-nav-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    position: relative;
    padding-bottom: 8px;
}

.bottom-nav-center .center-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0a1a;
    font-size: 1.2rem;
    margin-top: -22px;
    box-shadow:
        0 4px 15px rgba(255,106,0,0.4),
        0 0 30px rgba(255,202,40,0.15);
    border: 3px solid rgba(10,10,26,0.9);
    transition: all 0.3s ease;
}

.bottom-nav-center span {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--accent-gold);
    text-transform: uppercase;
}
