@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* --- THEME VARIABLES --- */
:root {
    /* DEFAULT (LIGHT) */
    --primary: #00d2ff;
    --secondary: #3a7bd5;
    --bg-color: #f4faff;
    --card-bg: #ffffff;
    --text-main: #2d3436;
    --text-sec: #636e72;
    --input-bg: #fcfdfe;
    --border-color: #e1f0f7;
    --nav-bg: rgba(255,255,255,0.98);
    --gradient: linear-gradient(135deg, #00d2ff, #3a7bd5);
    --shadow: 0 5px 20px rgba(0,0,0,0.02);
}

/* DARK BLUE THEME */
body.theme-dark-blue {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-main: #f1f5f9;
    --text-sec: #94a3b8;
    --input-bg: #0f172a;
    --border-color: #334155;
    --nav-bg: rgba(30, 41, 59, 0.98);
    --shadow: 0 5px 20px rgba(0,0,0,0.2);
}

/* AMOLED BLACK THEME */
body.theme-black {
    --bg-color: #000000;
    --card-bg: #121212;
    --text-main: #ffffff;
    --text-sec: #a0a0a0;
    --input-bg: #1a1a1a;
    --border-color: #333333;
    --nav-bg: rgba(18, 18, 18, 0.98);
    --shadow: 0 5px 20px rgba(255,255,255,0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Poppins', sans-serif; -webkit-tap-highlight-color: transparent; }

body { 
    background-color: var(--bg-color); 
    color: var(--text-main); 
    padding-bottom: 90px; 
    transition: background 0.3s, color 0.3s;
}

/* LOADER */
#loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--card-bg); z-index: 9999;
    display: flex; justify-content: center; align-items: center; flex-direction: column;
}
.spinner {
    width: 40px; height: 40px; border: 4px solid var(--border-color);
    border-top: 4px solid var(--secondary); border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }
.hidden { display: none !important; }

/* AUTH SCREEN */
.circles { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; z-index: 0; pointer-events: none; }
.circles li { position: absolute; display: block; list-style: none; width: 20px; height: 20px; background: rgba(0, 210, 255, 0.2); animation: animate 25s linear infinite; bottom: -150px; border-radius: 50%; }
.circles li:nth-child(1){ left: 25%; width: 80px; height: 80px; animation-delay: 0s; }
@keyframes animate { 0%{ transform: translateY(0) rotate(0deg); opacity: 1; } 100%{ transform: translateY(-1000px) rotate(720deg); opacity: 0; } }

#auth-screen { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 20px; position: relative; }
.auth-card { background: var(--card-bg); width: 100%; max-width: 360px; padding: 25px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); text-align: center; border: 1px solid var(--border-color); z-index: 10; position: relative; }
.logo-img { width: 80px; height: 80px; border-radius: 18px; margin-bottom: 10px; border: 2px solid var(--primary); padding: 2px; background: var(--card-bg); }

.input-group { position: relative; margin-bottom: 12px; }
.input-group i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--secondary); font-size: 14px; }
.input-group input { width: 100%; padding: 12px 15px 12px 40px; border: 1.5px solid var(--border-color); border-radius: 10px; background: var(--input-bg); outline: none; transition: 0.3s; font-size: 13px; color: var(--text-main); }
.input-group input:focus { border-color: var(--primary); }

.btn-main { background: var(--gradient); color: white; border: none; padding: 12px; width: 100%; border-radius: 10px; font-weight: 700; cursor: pointer; box-shadow: 0 5px 15px rgba(0, 129, 251, 0.2); font-size: 14px; margin-bottom: 10px; }
.btn-google { background: var(--card-bg); color: var(--text-main); border: 1.5px solid var(--border-color); padding: 12px; width: 100%; border-radius: 10px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; transition: 0.2s; }
.btn-google:active { transform: scale(0.98); }

/* FAKE STATS CSS */
.live-stats { margin-top: 25px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 360px; z-index: 10; }
.stat-item { background: var(--card-bg); padding: 12px; border-radius: 12px; text-align: center; box-shadow: var(--shadow); border: 1px solid var(--border-color); border-bottom: 3px solid var(--primary); }
.stat-item h3 { font-size: 16px; color: var(--secondary); margin-bottom: 0px; font-weight: 800; }
.stat-item p { font-size: 10px; color: var(--text-sec); font-weight: 600; text-transform: uppercase; }

/* HEADER */
.header { position: fixed; top: 0; left: 0; width: 100%; height: 60px; background: var(--nav-bg); padding: 0 15px; display: flex; align-items: center; justify-content: space-between; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,0.03); backdrop-filter: blur(5px); border-bottom: 1px solid var(--border-color); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; color: var(--text-main); }
.brand img { width: 35px; height: 35px; border-radius: 10px; border: 1px solid var(--primary); }
.bal-badge { background: #e0f7ff; color: #0081fb; padding: 6px 14px; border-radius: 30px; font-size: 13px; font-weight: 800; }

.content { margin-top: 75px; padding: 15px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* BANNER SLIDER (Used in Home & Promotion) */
.banner-slider { display: flex; overflow-x: auto; gap: 12px; padding-bottom: 10px; scroll-snap-type: x mandatory; scroll-behavior: smooth; }
.banner-slider::-webkit-scrollbar { display: none; }
.banner-slider img { width: 92%; aspect-ratio: 16 / 9; border-radius: 16px; object-fit: cover; flex-shrink: 0; scroll-snap-align: center; box-shadow: 0 8px 20px rgba(0,0,0,0.1); background: #eee; }

/* CARDS & INPUTS */
.card { background: var(--card-bg); padding: 20px; border-radius: 18px; margin-bottom: 15px; box-shadow: var(--shadow); border: 1px solid var(--border-color); }
.card-title { font-weight: 700; margin-bottom: 15px; display: flex; align-items: center; gap: 8px; color: var(--text-main); font-size: 15px; }
.dynamic-label { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 700; color: var(--text-sec); margin-bottom: 5px; text-transform: uppercase; }

select, input { width: 100%; padding: 12px; border: 1.5px solid var(--border-color); border-radius: 12px; background: var(--input-bg); margin-bottom: 15px; outline: none; font-size: 13px; color: var(--text-main); }
select:focus, input:focus { border-color: var(--primary); }

/* SCROLLING TEXT ANIMATION */
.scroll-container { width: 100%; overflow: hidden; white-space: nowrap; background: linear-gradient(135deg, var(--secondary), var(--primary)); padding: 12px 0; border-radius: 15px; margin-bottom: 20px; display: none; /* Hidden until loaded */ }
.scroll-text { display: inline-block; padding-left: 100%; animation: scroll 15s linear infinite; color: white; font-weight: 600; font-size: 14px; }
@keyframes scroll { 0% { transform: translate(0, 0); } 100% { transform: translate(-100%, 0); } }

/* NEWS LIST */
.news-item { background: var(--card-bg); padding: 15px; border-radius: 12px; margin-bottom: 12px; border-left: 4px solid var(--secondary); box-shadow: var(--shadow); border: 1px solid var(--border-color); }
.news-date { font-size: 10px; color: var(--text-sec); margin-bottom: 4px; font-weight: 700; text-transform: uppercase; }
.news-title { font-size: 14px; font-weight: 700; color: var(--text-main); margin-bottom: 5px; }
.news-desc { font-size: 12px; color: var(--text-sec); line-height: 1.4; }

/* PROFILE & MENU */
.profile-head { text-align: center; margin-bottom: 20px; }
.p-img-cont { position: relative; width: 90px; height: 90px; margin: 0 auto 10px; }
.p-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary); padding: 3px; background: var(--card-bg); }
.cam-icon { position: absolute; bottom: 0; right: 0; background: var(--secondary); color: white; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid var(--card-bg); cursor: pointer; }
.name-wrapper { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 2px; }
.name-wrapper h3 { font-size: 18px; font-weight: 800; color: var(--text-main); }

.menu-grid { display: flex; flex-direction: column; gap: 10px; }
.menu-btn { display: flex; align-items: center; justify-content: space-between; background: var(--card-bg); padding: 12px 15px; border-radius: 14px; box-shadow: var(--shadow); cursor: pointer; border: 1px solid var(--border-color); transition: 0.2s; height: auto; min-height: 50px; }
.menu-btn:active { transform: scale(0.98); }
.menu-btn .left { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 13px; color: var(--text-main); }
.menu-btn i.icon { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 14px; }

/* Icon Colors */
.icon-blue { background: #e0f7ff; color: var(--secondary); }
.icon-purple { background: #f3e5f5; color: #9c27b0; }
.icon-orange { background: #fff3e0; color: #f39c12; }
.icon-green { background: #e8f5e9; color: #2ecc71; }
.icon-red { background: #ffebee; color: #e74c3c; }
.icon-dark { background: #eceff1; color: #34495e; }

/* NAV BAR */
.nav-bar { position: fixed; bottom: 0; left: 0; width: 100%; height: 70px; background: var(--nav-bg); display: flex; justify-content: space-between; align-items: center; box-shadow: 0 -5px 15px rgba(0,0,0,0.05); border-radius: 20px 20px 0 0; z-index: 999; padding: 0 10px; border-top: 1px solid var(--border-color); }
.nav-item { text-align: center; color: #b0bec5; font-size: 10px; font-weight: 600; width: 25%; cursor: pointer; }
.nav-item.active { color: var(--secondary); }
.nav-item i { font-size: 22px; margin-bottom: 3px; display: block; }

/* HISTORY ITEM */
.history-card { background: var(--card-bg); border-radius: 12px; padding: 12px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; border-left: 4px solid #eee; box-shadow: var(--shadow); border: 1px solid var(--border-color); border-left-width: 4px; }

/* THEME MODAL */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 2000; display: none; align-items: center; justify-content: center; backdrop-filter: blur(3px); }
.theme-modal { background: var(--card-bg); width: 85%; max-width: 300px; border-radius: 20px; padding: 20px; text-align: center; border: 1px solid var(--border-color); }
.theme-opt { display: flex; align-items: center; padding: 10px; margin: 8px 0; border-radius: 10px; border: 1px solid var(--border-color); cursor: pointer; }
.theme-opt:hover { background: var(--border-color); }
.color-dot { width: 20px; height: 20px; border-radius: 50%; margin-right: 15px; border: 1px solid #ccc; }

.wa-float { position: fixed; bottom: 85px; right: 20px; width: 55px; height: 55px; background: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 28px; box-shadow: 0 5px 15px rgba(37, 211, 102, 0.5); z-index: 900; }