/* =========================
   PWA APP SHELL
========================= */
html, body {
    height: 100%;
    margin: 0;

}

body.app-shell {
    background-color: var(--bg-body);
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 20px 20px;

    overflow: hidden; /* IMPORTANT */
}
/* Header logo fix */
.logo-img {
    height: 28px;
    max-width: 120px;
    object-fit: contain;
}
/* Profile icon fix */
.profile-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #334155;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==============================
   APP HEADER (CASABET STYLE)
   ============================== */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;

    background: linear-gradient(180deg, #1f2328, #12151a);
    border-bottom: 1px solid var(--border-color);

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 14px;
    z-index: 1000;
}


.nav-left,
.nav-center,
.nav-right {
    display: flex;
    align-items: center;
}

/* Profile */
.profile-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #4a3b2a;
    overflow: hidden;
    background: #1a1b1d;
}

.profile-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Logo */
.logo-img {
    height: 28px;
    filter: drop-shadow(0 2px 6px rgba(210,159,34,0.4));
}

/* Wallet */
.wallet-box {
    background: #1a1b1d;
    border: 1px solid #4a3b2a;
    border-radius: 50px;
    padding: 4px 6px 4px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.w-bal {
    font-size: 13px;
    font-weight: 700;
    color: #f1c40f;
}

.w-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #22c55e;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}


/* =========================
   MAIN CONTENT (SCROLL AREA)
========================= */
.app-content {
    position: fixed;
    top: 60px;           /* header height */
    bottom: 65px;        /* bottom nav height */
    left: 0;
    right: 0;

    overflow-y: auto;    /* THIS IS THE FIX */
    -webkit-overflow-scrolling: touch;

    padding: 15px;
}

/* ===== LEGAL SECTION (HOME PAGE) ===== */
.legal-section {
    margin-top: 25px;
    padding: 25px 20px 90px;

    background: #12151a;
    border-top: 1px solid var(--border-color);
}

.legal-title {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
}

.legal-text {
    font-size: 11px;
    color: #9aa0a6;
    line-height: 1.6;
    margin-bottom: 14px;
}

.legal-links a {
    font-size: 11px;
    color: var(--primary);
    margin-right: 12px;
    text-decoration: none;
}

.legal-footer {
    margin-top: 18px;
    font-size: 11px;
    color: #6b7280;
    text-align: center;
}


/* =========================
   FOOTER (FIXED)
========================= */
/* ===== BOTTOM NAV (MATCH CASABET) ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;

    background: linear-gradient(
        180deg,
        #0f172a 0%,
        #020617 100%
    );

    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: space-around;
    padding: 10px 0 14px;
    z-index: 999;
}

