/* Skeleton Loading Styles */
#loader { 
    position: fixed; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    background: var(--bg); 
    z-index: 9999; 
    padding: 20px;
}

.skeleton {
    background: #e5e7eb;
    background: linear-gradient(90deg, #f0f2f5 25%, #e5e7eb 50%, #f0f2f5 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 12px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.sk-header { height: 75px; width: 100%; margin-bottom: 20px; }
.sk-balance { height: 80px; width: 100%; border-radius: 22px; margin-bottom: 30px; }
.sk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.sk-grid-item { height: 160px; width: 100%; border-radius: 20px; }
.loader-text { margin-top: 30px; text-align: center; font-family: 'Lexend'; font-size: 11px; color: var(--text-dim); }

/* Header & Sub-header (Stuck) */
.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

header { 
    padding: 0 15px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 1px solid var(--border); 
    height: 75px; 
}

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

.header-search-center { flex: 1; display: flex; justify-content: center; }
.header-search-center i { font-size: 15px; color: var(--text-dim); cursor: pointer; }

.header-balance-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f3f4f6;
    padding: 9px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    cursor: pointer;
}

.header-balance-info { text-align: right; }
.header-balance-info .bal-label { font-size: 10px; font-weight: 800; color: var(--text-dim); text-transform: uppercase; display: block; }
.header-balance-info .bal-amount { font-size: 15px; font-weight: 800; font-family: 'Lexend'; }
.bal-cents { opacity: 0.35; font-size: 12px; margin-left: 1px; }

.header-dep-btn {
    background: var(--primary);
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 11px;
    cursor: pointer;
}

/* Sub-header */
.sub-header {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 12px 15px;
    gap: 20px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    scrollbar-width: none; 
}
.sub-header::-webkit-scrollbar { display: none; }
.sub-item {
    font-family: 'Lexend'; font-size: 13px; font-weight: 600;
    color: var(--text-dim); text-decoration: none;
    display: flex; align-items: center; gap: 6px;
}
.sub-item i { font-size: 14px; }
.sub-item.active { color: #000; border-bottom: 2px solid var(--primary); padding-bottom: 2px; }

/* Footer Updated */
.bottom-nav { 
    position: fixed; bottom: 0; width: 100%; 
    background: var(--footer-bg); 
    display: flex; justify-content: space-around; align-items: center;
    padding: 7px 0 20px 0; z-index: 1000; height: 55px;
}

.nav-item { 
    display: flex; flex-direction: column; align-items: center; 
    color: #ffffff; text-decoration: none; font-size: 9px; font-family: 'Lexend'; 
}
.nav-item i { font-size: 20px; margin-bottom: 5px; }
.nav-item.active { color: var(--primary); }

.trade-btn-container {
    display: flex; flex-direction: column; align-items: center;
    color: var(--primary); font-family: 'Lexend'; text-decoration: none; cursor: pointer;
}
.trade-btn-container i { font-size: 24px; margin-bottom: 2px; }
.trade-btn-container span { font-size: 11px; font-weight: 800; text-transform: lowercase; }

/* General Modal */
.modal-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.6); display: none; align-items: center; 
    justify-content: center; z-index: 3000; padding: 20px; backdrop-filter: blur(5px); 
}
.modal-content { background: #ffffff; padding: 30px; border-radius: 28px; width: 100%; max-width: 320px; text-align: center; }
.modal-btn { background: var(--primary); color: #000; border: none; padding: 14px; border-radius: 12px; margin-top: 20px; font-weight: 700; width: 100%; cursor: pointer;}

/* Bottom Sheet Menu Modal */
.bottom-sheet-overlay {
    position: fixed; inset: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); display: none; align-items: flex-end;
    justify-content: center; z-index: 4000; backdrop-filter: blur(5px);
}
.bottom-sheet {
    background: #ffffff; width: 100%; max-width: 500px;
    border-radius: 28px 28px 0 0; padding: 25px 25px 40px 25px;
    transform: translateY(100%); transition: transform 0.3s ease-out;
}
.bottom-sheet.show {
    transform: translateY(0);
}
.sheet-handle {
    width: 40px; height: 5px; background: #e5e7eb;
    border-radius: 10px; margin: 0 auto 20px auto;
}
.menu-list {
    list-style: none; padding: 0; margin: 0;
}
.menu-list li {
    padding: 15px 10px; border-bottom: 1px solid var(--border);
    font-family: 'Inter'; font-weight: 600; font-size: 15px;
    color: var(--text-light); display: flex; align-items: center; gap: 15px;
    cursor: pointer;
}
.menu-list li:last-child { border-bottom: none; }
.menu-list li i { color: var(--text-dim); font-size: 18px; width: 20px; text-align: center;}
