/* ==========================================================================
   Mobile-First App Simulator Theme (Responsive on All Screens including Laptop)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Poppins:wght@500;600;700;800;900&display=swap');

:root {
    --app-max-width: 480px;

    /* Color Palette */
    --primary-color: #ff6b00;
    --primary-hover: #e65c00;
    --primary-light: #fff2e8;
    --primary-gradient: linear-gradient(135deg, #ff6b00 0%, #ff8c38 100%);
    --primary-glow: rgba(255, 107, 0, 0.35);

    --navy-dark: #0a192f;
    --navy-deep: #061120;
    --navy-card: #0f223d;
    --navy-light: #162c4e;
    --navy-gradient: linear-gradient(135deg, #0a192f 0%, #112848 100%);

    --bg-light: #ffffff;
    --bg-surface: #f8fafc;
    --card-light: #ffffff;
    --card-border: #e2e8f0;
    --border-dark: rgba(255, 255, 255, 0.12);

    --text-dark: #0f172a;
    --text-dark-muted: #64748b;
    --text-white: #ffffff;
    --text-white-muted: #94a3b8;

    --shadow-sm: 0 2px 8px rgba(10, 25, 47, 0.06);
    --shadow-md: 0 8px 20px rgba(10, 25, 47, 0.08);
    --shadow-lg: 0 15px 35px rgba(10, 25, 47, 0.15);
    --shadow-orange: 0 8px 25px rgba(255, 107, 0, 0.35);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;

    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Resets */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 15px;
    background-color: #050d18;
}

body, button, input, select, textarea {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background: #050d18 radial-gradient(circle at 50% 0%, #0d223f 0%, #050d18 100%) no-repeat fixed;
    color: var(--text-dark);
    line-height: 1.55;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mobile App Wrapper (Always Constrained like Mobile on Laptop & Desktop) */
.app-wrapper {
    width: 100%;
    max-width: var(--app-max-width);
    min-height: 100vh;
    background-color: var(--bg-light);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    padding-bottom: 70px; /* space for fixed bottom bar */
}

/* Ensure FontAwesome icons always render correctly */
i.fa, i.fas, i.far, i.fab, i.fa-solid, i.fa-regular, i.fa-brands, [class*="fa-"] {
    font-family: "Font Awesome 6 Free" !important;
    font-style: normal;
}
i.fa-brands, .fab {
    font-family: "Font Awesome 6 Brands" !important;
}
i.fas, i.fa-solid {
    font-weight: 900 !important;
}

body.no-scroll {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    color: var(--navy-dark);
    line-height: 1.25;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #050d18;
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

/* Container */
.container {
    width: 100%;
    padding: 0 16px;
    margin: 0 auto;
}

/* ==========================================================================
   Fixed Header Wrapper (Permanently Fixed at Top of Mobile Frame)
   ========================================================================== */
.fixed-header-wrapper {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--app-max-width);
    z-index: 2000;
    background: var(--navy-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

/* Main Content Top Offset for Fixed Header */
main {
    padding-top: 60px; /* height of header (60px) */
    transition: var(--transition);
}

/* ==========================================================================
   Top App Download / Promo Bar (Matching Reference Image)
   ========================================================================== */
.top-app-banner {
    background: #061120;
    color: #ffffff;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.78rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2010;
}

.top-app-banner.hidden {
    display: none;
}

.top-app-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    overflow: hidden;
}

.top-app-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1rem;
    cursor: pointer;
    padding: 2px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-app-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(255, 107, 0, 0.4);
}

.top-app-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    white-space: nowrap;
}

.top-app-title {
    font-weight: 800;
    font-size: 0.76rem;
    color: #ffffff;
    text-transform: uppercase;
}

.top-app-bonus {
    color: #ffaa00;
    font-weight: 800;
    font-size: 0.72rem;
}

.top-app-btn {
    background: #10b981;
    color: #ffffff !important;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

/* ==========================================================================
   Header Component (Mobile App Header)
   ========================================================================== */
header#main-header,
header {
    width: 100%;
    background: var(--navy-dark);
    height: 60px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 14px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2200;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    height: 2.5px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 2px;
    transition: var(--transition);
    pointer-events: none;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

/* Header Auth Buttons (Matching Reference Header: Login + Register) */
.header-auth-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-header-login {
    background: #0f284a;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-full);
}

.btn-header-register {
    background: #ffcc00;
    color: #0a192f !important;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 10px rgba(255, 204, 0, 0.35);
}

/* Offcanvas Navigation Drawer */
.nav-list {
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: var(--navy-dark);
    padding: 70px 1.5rem 2rem;
    transition: var(--transition);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.6);
    z-index: 2250;
    overflow-y: auto;
    transform: translateX(-100%);
}

.nav-list.active {
    transform: translateX(0);
}

.nav-list ul {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.nav-list ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
}

.nav-list ul li a {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-list ul li a:hover {
    color: var(--primary-color);
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 2150;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   Sticky Mobile Bottom Bar (Matching Reference Bottom Bar)
   ========================================================================== */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--app-max-width);
    height: 60px;
    background: rgba(10, 25, 47, 0.98);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 2000;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.mobile-bottom-bar .btn-bottom-login {
    flex: 1;
    height: 42px;
    background: #0f284a;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.88rem;
    text-transform: uppercase;
}

.mobile-bottom-bar .btn-bottom-register {
    flex: 1.3;
    height: 42px;
    background: #ffcc00;
    color: #0a192f;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.88rem;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(255, 204, 0, 0.35);
}

.mobile-bottom-bar .btn-bottom-close {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    flex-shrink: 0;
}

/* Common Mobile Button Utilities */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary-gradient);
    color: #ffffff !important;
    padding: 0.8rem 1.6rem;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-orange);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    width: 100%;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
    padding: 0.8rem 1.6rem;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: var(--transition);
    cursor: pointer;
    width: 100%;
}

.btn-app-official {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #10b981;
    color: #ffffff !important;
    padding: 0.85rem 1.8rem;
    font-size: 0.92rem;
    font-weight: 800;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    transition: var(--transition);
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-app-official:hover {
    background: #059669;
    transform: translateY(-2px);
}

/* ==========================================================================
   Mobile Footer Component (Modern, Responsive & Feature-Rich)
   ========================================================================== */
footer.footer-mobile {
    background: #040c17;
    color: #ffffff;
    padding: 2rem 1.2rem 5.5rem;
    border-top: 2px solid var(--primary-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer-mobile-logo {
    height: 40px;
    width: auto;
    margin: 0 auto 0.8rem;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.footer-mobile-desc {
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.65;
    margin-bottom: 1.4rem;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

.footer-mobile-desc strong {
    color: #ffffff;
    font-weight: 700;
}

.footer-payments-block {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md);
    padding: 12px 10px;
    margin-bottom: 1.4rem;
}

.footer-payments-title {
    font-size: 0.72rem;
    font-weight: 800;
    color: #ffaa00;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.footer-mobile-payments {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.footer-pay-pill {
    background: #0b1c33;
    font-size: 0.7rem;
    font-weight: 800;
    color: #e2e8f0;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    letter-spacing: 0.5px;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.footer-pay-pill:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.footer-mobile-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 12px;
    margin-bottom: 1.4rem;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-mobile-nav a {
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.footer-mobile-nav a i {
    font-size: 0.65rem;
    color: var(--primary-color);
}

.footer-mobile-nav a:hover {
    color: #ffffff;
    background: rgba(255, 107, 0, 0.15);
}

.sitemap-link {
    margin-bottom: 1.2rem;
}

.sitemap-link a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: var(--transition);
}

.sitemap-link a:hover {
    color: var(--primary-color);
}

.footer-trust-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.footer-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.04);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-trust-badge.badge-18 {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.footer-mobile-copy {
    font-size: 0.74rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}