/* ===== Desktop min-width breakpoints (largest first) ===== */

@media (min-width: 1200px) {
    .draw-details-page .container-fluid.px-2.px-sm-3,
    body.draw-details-page .container-fluid.px-2.px-sm-3,
    html body.draw-details-page .container-fluid.px-2.px-sm-3 {
        max-width: 1200px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (min-width: 992px) {
    .navbar-nav .nav-link {
        white-space: nowrap;
        font-size: 0.9rem;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .navbar-brand {
        flex-shrink: 0;
        margin-right: 1rem;
    }

    #navbarNav {
        flex-wrap: nowrap !important;
        overflow: hidden;
    }

    #navbarNav ul.navbar-nav {
        flex-wrap: nowrap !important;
    }

    .navbar-nav.flex-shrink-0 {
        min-width: auto;
        flex-shrink: 0 !important;
    }
}

@media (min-width: 768px) {
    .data-analytics-preview {
        height: auto !important;
        overflow: visible !important;
    }
}

/* ===== Max-width breakpoints (largest to smallest) ===== */

@media (max-width: 1200px) {
    .draw-details-container {
        max-width: 95% !important;
        margin: 0 auto !important;
    }
}

@media (max-width: 992px) {
    body {
        padding-bottom: 80px !important;
    }

    .footer {
        margin-bottom: 70px;
        padding-bottom: 1rem;
    }
}

@media (max-width: 991px) {
    .dropdown-menu-end {
        right: 0;
        left: auto;
    }
}

@media (max-width: 768px) {
    .lottery-ball {
        width: 28px !important;
        height: 28px !important;
        font-size: 12px !important;
        margin: 2px 1px !important;
        border: none !important;
        line-height: 28px !important;
        font-weight: bold !important;
    }

    .lottery-ball-mobile {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
        margin: 2px !important;
        line-height: 36px !important;
        font-weight: bold !important;
    }

    .hot-number-item .lottery-ball,
    .cold-number-item .lottery-ball,
    .absent-number-item .lottery-ball {
        width: 35px !important;
        height: 35px !important;
        min-width: 35px !important;
        min-height: 35px !important;
        max-width: 35px !important;
        max-height: 35px !important;
        font-size: 14px !important;
        margin: 0 2px !important;
        line-height: 1 !important;
        font-weight: bold !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .hot-number-item .lottery-ball .number,
    .cold-number-item .lottery-ball .number,
    .absent-number-item .lottery-ball .number {
        font-size: 14px !important;
        font-weight: bold !important;
        line-height: 35px !important;
    }

    .table-lottery th,
    .table-lottery td {
        padding: 6px;
        font-size: 0.9rem;
    }

    .card-title {
        font-size: 1.25rem;
    }

    .table-responsive {
        font-size: 0.85rem;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .card {
        margin-bottom: 1rem;
    }

    .card-body {
        padding: 0.75rem;
    }

    .btn {
        padding: 0.375rem 0.6rem;
    }

    .game-type-badge {
        font-size: 0.7rem;
        padding: 2px 5px;
    }

    .chart-container {
        height: 40vh !important;
    }

    .draw-details-container {
        padding: 0 10px !important;
    }

    .financial-info-card.compact {
        padding: 6px;
        min-height: 60px;
    }

    .financial-label {
        font-size: 10px;
        margin-bottom: 4px;
    }

    .financial-value {
        font-size: 12px;
    }

    .stat-number {
        font-size: 20px;
    }

    .stat-label {
        font-size: 11px;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .stat-item {
        padding: 12px 8px;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .numbers-container {
        padding: 15px;
    }

    .info-grid {
        gap: 8px;
    }

    .frequency-chart {
        gap: 4px !important;
        padding: 10px 3px !important;
    }

    .interactive-bar {
        width: 30px !important;
    }

    .bar-column {
        min-width: 30px !important;
        max-width: 30px !important;
    }

    .number-label {
        font-size: 11px;
    }

    .slogan-text {
        font-size: 1rem;
    }

    .slogan-banner {
        padding: 8px 15px;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    body.ios-standalone,
    body.android-standalone {
        padding-bottom: calc(60px + env(safe-area-inset-bottom));
    }

    .card {
        margin-bottom: 10px;
    }

    .lottery-number, .lottery-ball {
        min-width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 12px;
    }
}

@media (max-width: 767px) {
    .data-analytics-preview {
        height: auto !important;
        overflow: visible !important;
    }

    .chart-container-mobile,
    .bar-chart-container {
        min-height: 180px !important;
        height: auto !important;
    }

    .chart-card {
        height: 350px !important;
        margin-bottom: 1rem !important;
    }

    .ai-predictions-container {
        height: auto !important;
        max-height: none !important;
        min-height: auto !important;
    }

    .mobile-prediction-item {
        padding: 8px !important;
        margin-bottom: 8px !important;
    }

    .mobile-prediction-item .numbers-container {
        margin-top: 4px !important;
    }

    .mobile-prediction-item .d-flex.justify-content-between {
        margin-bottom: 6px !important;
    }

    .mobile-prediction-item .lottery-number {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        max-width: 32px !important;
        max-height: 32px !important;
        border-radius: 50% !important;
        font-size: 13px !important;
        line-height: 32px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 2px 1px !important;
    }

    .mobile-prediction-item .bonus-number {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        max-width: 32px !important;
        max-height: 32px !important;
        border-radius: 50% !important;
        font-size: 13px !important;
        line-height: 32px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 2px 1px !important;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 14px;
    }

    .lottery-ball {
        width: 35px;
        height: 35px;
        min-width: 35px;
        min-height: 35px;
        max-width: 35px;
        max-height: 35px;
        font-size: 14px;
        margin: 0 4px 8px 0;
    }

    .ticket-scanner .lottery-ball,
    #winning-numbers-for-games .lottery-ball {
        width: 35px;
        height: 35px;
        min-width: 35px;
        min-height: 35px;
        max-width: 35px;
        max-height: 35px;
        font-size: 14px;
        margin: 0 2px 4px 0;
    }

    .lottery-ball-sm {
        width: 23px;
        height: 23px;
        font-size: 0.75rem;
    }

    .lottery-ball-sm .number {
        font-size: 9px;
    }

    .lottery-ball-xs {
        width: 18px;
        height: 18px;
        min-width: 18px;
        min-height: 18px;
        max-width: 18px;
        max-height: 18px;
        font-size: 8px;
    }

    .lottery-ball-bonus::after {
        width: 8px;
        height: 8px;
        top: -2px;
        right: -2px;
    }

    .lottery-plus-sign {
        font-size: 22px;
        margin: 0 8px;
        height: 45px;
    }

    .table-lottery {
        table-layout: fixed !important;
        width: 100% !important;
        font-size: 12px !important;
    }

    .table-lottery th:first-child,
    .table-lottery td:first-child {
        width: 25% !important;
        font-size: 10px !important;
        line-height: 1.1 !important;
        padding: 4px 2px !important;
    }

    .table-lottery th:nth-child(2),
    .table-lottery td:nth-child(2) {
        width: 15% !important;
        font-size: 11px !important;
    }

    .table-lottery th:nth-child(3),
    .table-lottery td:nth-child(3) {
        width: 20% !important;
        font-size: 10px !important;
    }

    .table-lottery th:nth-child(4),
    .table-lottery td:nth-child(4) {
        width: 40% !important;
        padding: 4px !important;
    }

    .lottery-number {
        width: 28px !important;
        height: 28px !important;
        font-size: 12px !important;
        line-height: 28px !important;
        margin: 2px 1px !important;
        box-sizing: border-box !important;
        text-align: center !important;
        vertical-align: middle !important;
        padding: 0 !important;
        border: none !important;
        font-weight: bold !important;
    }

    .bonus-number {
        width: 24px !important;
        height: 20px !important;
        font-size: 9px !important;
        line-height: 20px !important;
        margin: 2px 1px !important;
        box-sizing: border-box !important;
        text-align: center !important;
        vertical-align: middle !important;
        padding: 0 !important;
        border: none !important;
    }

    .match-indicator {
        width: 16px;
        height: 16px;
        font-size: 10px;
        top: -3px;
        right: -3px;
    }

    .match-indicator::before {
        width: 6px;
        height: 10px;
        border-width: 0 2px 2px 0;
        margin-bottom: 1px;
    }

    #ticket-numbers .mb-3 {
        justify-content: flex-start;
        margin-bottom: 0.5rem !important;
    }

    #ticket-numbers .mb-3 .mx-2 {
        margin-left: 0.25rem !important;
        margin-right: 0.25rem !important;
    }

    #ticket-numbers .mb-3 + .mb-3 {
        margin-top: 0.5rem;
    }

    #ticket-numbers strong {
        margin-bottom: 0.25rem;
        display: inline-block;
    }

    #results-container .card-body {
        padding: 1rem 0.75rem;
    }

    .numbers-container {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        justify-content: center;
    }

    .lottery-ball-container {
        width: 23px;
        margin: 0 1px 3px;
    }

    .result-card {
        border-radius: 10px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        margin-bottom: 12px;
    }

    .result-card .card-header {
        padding: 8px 12px;
        background-color: #f9f9f9;
    }

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

    .slogan-text {
        font-size: 0.9rem;
    }

    .slogan-banner {
        padding: 6px 12px;
        width: 90%;
        max-width: 320px;
    }

    .step-circle {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .step-text {
        font-size: 10px;
    }

    .steps-container:before {
        top: 15px;
    }

    .card-title {
        font-size: 1rem;
    }

    .game-type-badge {
        font-size: 0.65rem;
        padding: 2px 4px;
    }

    .card-header {
        padding: 0.5rem 0.75rem;
    }

    .card {
        margin-bottom: 0.75rem;
    }

    .card-body {
        padding: 0.5rem;
    }

    .btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.875rem;
    }

    .form-control, .form-select {
        font-size: 0.875rem;
        padding: 0.3rem 0.5rem;
    }

    .navbar {
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }

    .nav-link {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .chart-container {
        height: 180px !important;
    }

    .numbers-container {
        gap: 2px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lottery-ball-lg {
        width: 35px;
        height: 35px;
        font-size: 0.875rem;
    }

    .data-analytics-preview {
        height: auto !important;
        overflow: visible !important;
    }

    .data-analytics-preview .chart-card {
        height: auto !important;
        min-height: 420px !important;
    }

    .hot-cold-container {
        max-height: none !important;
        min-height: 150px !important;
        padding-bottom: 15px !important;
        overflow: visible !important;
    }

    .hot-number-item, .cold-number-item, .absent-number-item {
        display: inline-flex !important;
        flex-direction: column !important;
        align-items: center !important;
        margin-right: 4px !important;
        margin-bottom: 8px !important;
    }

    .hot-number-item .lottery-ball,
    .cold-number-item .lottery-ball,
    .absent-number-item .lottery-ball {
        width: 32px !important;
        height: 32px !important;
        font-size: 13px !important;
        line-height: 32px !important;
        margin: 0 2px 4px 0 !important;
    }

    .hot-number-item .frequency-label,
    .cold-number-item .frequency-label,
    .absent-number-item .frequency-label {
        font-size: 0.55rem !important;
        margin-top: 2px !important;
        line-height: 1 !important;
    }

    .hot-numbers, .cold-numbers, .absent-numbers {
        margin-bottom: 12px !important;
        contain: layout style;
        isolation: isolate;
    }

    .hot-numbers h6, .cold-numbers h6, .absent-numbers h6 {
        margin-bottom: 15px !important;
        padding: 10px 0 !important;
        position: relative;
        z-index: 15;
        background-color: white;
        clear: both;
        isolation: isolate;
    }

    .data-analytics-preview .flex-container {
        flex-direction: column;
    }

    .data-analytics-preview .frequency-chart-container {
        width: 100%;
        height: 250px;
        margin-bottom: 20px;
    }

    .data-analytics-preview .temperature-chart-container {
        width: 100%;
        height: 250px;
    }

    .data-analytics-preview .chart-legend-container {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }

    .data-analytics-preview .pie-chart-container {
        max-width: 120px;
        margin: 0 auto;
    }

    .data-analytics-preview .legend-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 15px;
    }

    .data-analytics-preview .legend-item {
        margin: 3px 6px;
    }

    .frequency-legend {
        font-size: 0.75rem;
        gap: 6px;
    }

    .frequency-legend .me-3 {
        margin-right: 0.5rem !important;
    }

    .table-lottery th,
    .table-lottery td {
        padding: 3px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .data-analytics-preview {
        height: auto !important;
        overflow: visible !important;
    }

    .chart-container-mobile,
    .bar-chart-container {
        min-height: 160px !important;
    }

    .mobile-prediction-item {
        padding: 6px !important;
        margin-bottom: 6px !important;
    }

    .mobile-prediction-item .lottery-number,
    .mobile-prediction-item .bonus-number {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        min-height: 30px !important;
        max-width: 30px !important;
        max-height: 30px !important;
        font-size: 12px !important;
        line-height: 30px !important;
    }

    .frequency-chart {
        gap: 2px !important;
        padding: 10px 2px !important;
    }

    .interactive-bar {
        width: 24px !important;
    }

    .bar-column {
        min-width: 24px !important;
        max-width: 24px !important;
    }

    .number-label {
        font-size: 10px;
    }

    .interactive-bar-container {
        height: 150px !important;
    }
}

@media (max-width: 400px) {
    .lottery-ball {
        width: 24px !important;
        height: 24px !important;
        font-size: 11px !important;
        margin: 2px 1px !important;
        line-height: 24px !important;
        font-weight: bold !important;
    }

    .lottery-ball-mobile {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
        margin: 1px !important;
        line-height: 32px !important;
        font-weight: bold !important;
    }

    .lottery-ball-bonus {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
        line-height: 32px !important;
        font-weight: bold !important;
    }

    .lottery-ball-bonus::after {
        width: 6px;
        height: 6px;
        top: -1px;
        right: -1px;
    }

    .hot-number-item .lottery-ball,
    .cold-number-item .lottery-ball,
    .absent-number-item .lottery-ball {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        min-height: 30px !important;
        max-width: 30px !important;
        max-height: 30px !important;
        font-size: 12px !important;
        margin: 0 1px !important;
        line-height: 1 !important;
        font-weight: bold !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        color: white !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .hot-number-item .lottery-ball .number,
    .cold-number-item .lottery-ball .number,
    .absent-number-item .lottery-ball .number {
        font-size: 14px !important;
        font-weight: bold !important;
        line-height: 32px !important;
    }

    .lottery-ball-sm {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }

    .lottery-ball-sm .number {
        font-size: 8px;
    }

    .lottery-ball-xs {
        width: 16px;
        height: 16px;
        min-width: 16px;
        min-height: 16px;
        max-width: 16px;
        max-height: 16px;
        font-size: 7px;
    }

    .lottery-ball-container {
        width: 20px;
        margin: 0 1px 2px;
    }
}

@media (max-width: 360px) {
    .lottery-ball {
        width: 30px;
        height: 30px;
        min-width: 30px;
        min-height: 30px;
        max-width: 30px;
        max-height: 30px;
        font-size: 12px;
        margin: 0 3px 6px 0;
    }

    .ticket-scanner .lottery-ball,
    #winning-numbers-for-games .lottery-ball {
        width: 30px;
        height: 30px;
        min-width: 30px;
        min-height: 30px;
        max-width: 30px;
        max-height: 30px;
        font-size: 12px;
        margin: 0 2px 3px 0;
    }

    .lottery-plus-sign {
        font-size: 20px;
        margin: 0 6px;
        height: 38px;
    }
}

/* ===== PWA Standalone Mode Styles ===== */

.ios-standalone {
    padding-top: env(safe-area-inset-top);
    overflow-y: auto !important;
    height: auto !important;
}

.android-standalone {
    padding-top: env(safe-area-inset-top);
    overflow-y: auto !important;
    height: auto !important;
}

@supports (padding-top: env(safe-area-inset-top)) {
    body.ios-standalone .navbar,
    body.android-standalone .navbar {
        padding-top: calc(1rem + env(safe-area-inset-top));
        background: linear-gradient(135deg, #ffffff 0%, #fffacd 100%) !important;
        border-bottom: 3px solid #ffc107 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1050 !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    }

    body.ios-standalone .navbar-brand,
    body.android-standalone .navbar-brand {
        color: #000 !important;
    }

    body.ios-standalone .navbar-brand .lottery-logo,
    body.android-standalone .navbar-brand .lottery-logo {
        color: #000 !important;
    }

    body.ios-standalone .navbar-brand .fas,
    body.android-standalone .navbar-brand .fas {
        color: #ffc107 !important;
    }

    body.ios-standalone,
    body.android-standalone {
        padding-top: calc(90px + env(safe-area-inset-top)) !important;
        background: #f8f9fa !important;
    }

    body.ios-standalone .container-fluid,
    body.android-standalone .container-fluid {
        margin-top: 0 !important;
        padding-top: 10px !important;
        position: relative !important;
        z-index: 1 !important;
    }
}

#pwa-install-btn {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 9999;
    background: linear-gradient(135deg, #1a472a 0%, #0f2c18 100%);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(26, 71, 42, 0.3);
    transition: all 0.3s ease;
    font-size: 14px;
    min-width: 120px;
}

#pwa-install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 71, 42, 0.4);
    background: linear-gradient(135deg, #0f2c18 0%, #1a472a 100%);
}

#pwa-install-btn i {
    margin-right: 8px;
}

@media (max-width: 768px) {
    body.ios-standalone,
    body.android-standalone {
        margin: 0;
        padding-left: 0;
        padding-right: 0;
        overflow-x: hidden;
    }

    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }

    .card {
        border-radius: 12px;
        margin-bottom: 15px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .lottery-number, .lottery-ball {
        min-width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 14px;
        margin: 2px;
    }

    .hot-number-item, .cold-number-item, .absent-number-item {
        width: 35px !important;
        height: 35px !important;
        line-height: 35px !important;
        font-size: 12px !important;
        margin: 2px !important;
    }

    body.ios-standalone #mobile-nav,
    body.android-standalone #mobile-nav {
        bottom: env(safe-area-inset-bottom);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(0,0,0,0.1);
    }

    body.ios-standalone,
    body.android-standalone {
        padding-bottom: calc(80px + env(safe-area-inset-bottom)) !important;
    }

    body.ios-standalone .footer,
    body.android-standalone .footer {
        margin-bottom: calc(70px + env(safe-area-inset-bottom)) !important;
        padding-bottom: 1rem !important;
    }

    body.ios-standalone .navbar-brand,
    body.android-standalone .navbar-brand {
        color: #000 !important;
    }

    body.ios-standalone .container,
    body.android-standalone .container,
    body.ios-standalone .container-fluid,
    body.android-standalone .container-fluid {
        position: relative !important;
        z-index: 1 !important;
    }

    body.ios-standalone .card,
    body.android-standalone .card {
        position: relative !important;
        z-index: 1 !important;
    }
}

@media (prefers-color-scheme: dark) {
    body.ios-standalone,
    body.android-standalone {
        background-color: #121212;
        color: #ffffff;
    }

    body.ios-standalone .card,
    body.android-standalone .card {
        background-color: #1e1e1e;
        border-color: #333;
        color: #ffffff;
    }

    body.ios-standalone #mobile-nav,
    body.android-standalone #mobile-nav {
        background: rgba(30, 30, 30, 0.98);
        border-top-color: rgba(255,255,255,0.1);
    }
}

.pwa-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1a472a 0%, #0f2c18 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 99999;
    animation: fadeOut 0.5s ease 2s forwards;
}

.pwa-loading .logo {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: #1a472a;
    margin-bottom: 20px;
}

.pwa-loading .spinner {
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top: 3px solid white;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

body.ios-standalone .lottery-number,
body.android-standalone .lottery-number,
body.ios-standalone .lottery-ball,
body.android-standalone .lottery-ball,
body.ios-standalone .hot-number-item,
body.android-standalone .hot-number-item,
body.ios-standalone .cold-number-item,
body.android-standalone .cold-number-item {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

body.ios-standalone,
body.android-standalone {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

body.ios-standalone *:focus,
body.android-standalone *:focus {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

body.ios-standalone .btn,
body.android-standalone .btn {
    transition: all 0.2s ease;
    transform: translateZ(0);
}

body.ios-standalone .btn:active,
body.android-standalone .btn:active {
    transform: scale(0.98);
}

body.ios-standalone,
body.android-standalone {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: white;
    border-top: 1px solid #ddd;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
    z-index: 999999;
    display: flex;
}

@media (max-width: 991px) {
    body {
        padding-bottom: 70px !important;
        margin-bottom: 0 !important;
    }
}

@media (min-width: 992px) {
    body {
        padding-bottom: 0 !important;
    }
}

.mobile-bottom-nav .mobile-nav-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #666;
}

.mobile-bottom-nav .mobile-nav-link i {
    font-size: 16px;
    margin-bottom: 2px;
}

.mobile-bottom-nav .mobile-nav-link.active {
    color: #dc3545;
}

.mobile-bottom-nav .mobile-nav-link small.nav-label-sm {
    font-size: 11px;
}

.mobile-bottom-nav .mobile-nav-link .icon-sm {
    font-size: 14px;
}

.site-footer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 50 !important;
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
    background-color: #f8f9fa !important;
    border-top: 2px solid #ffc107 !important;
}
