:root {
    --bg-dark: #050f0a;
    --card-bg: #0f1a15;
    --primary: #fbbf24;
    --accent: #4ade80;
    --text-main: #ffffff;
    --text-gray: #94a3b8;
    --nav-bg: #0a120e;
    --border: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* HEADER */
.header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-dark);
    z-index: 10;
}

.logo-area { display: flex; align-items: center; gap: 10px; }
.logo-img { width: 32px; height: 32px; border-radius: 8px; }
.app-title { font-size: 1.2rem; font-weight: 700; color: var(--accent); letter-spacing: 1px; }

.user-badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-gray);
    border: 1px solid var(--border);
}

/* CONTENT */
.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 10px 20px 100px 20px;
}

.page { display: none; animation: fadeIn 0.3s ease-out; }
.page.active { display: block; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* CARDS */
.card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.card.gold-gradient {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(15, 26, 21, 1) 100%);
    border-color: rgba(251, 191, 36, 0.2);
}

.card-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-gray); margin-bottom: 8px; display: block; }
.balance-amount { font-size: 2.5rem; font-weight: 700; color: var(--text-main); margin: 5px 0; }
.balance-row { display: flex; justify-content: space-between; margin-top: 15px; }
.balance-item { font-size: 0.85rem; color: var(--text-gray); }
.balance-val { color: var(--accent); font-weight: 600; }
.balance-val.neg { color: var(--text-main); }

/* GRID MENU */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 24px 0;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.03);
    padding: 15px 5px;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.lbl { font-size: 0.7rem; color: var(--text-gray); font-weight: 500; }

/* LISTS */
.task-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}
.task-item:last-child { border-bottom: none; }

.check-circle {
    width: 24px; height: 24px;
    border-radius: 50%;
    border: 2px solid var(--text-gray);
    display: flex; justify-content: center; align-items: center;
}
.check-circle.checked {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
}

.task-info { flex: 1; }
.task-title { font-size: 1rem; font-weight: 500; }
.task-sub { font-size: 0.8rem; color: var(--text-gray); margin-top: 2px; }

/* BOTTOM NAV */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 85px;
    background: var(--nav-bg);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    padding-top: 15px;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav-item {
    background: none; border: none;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    width: 60px;
    cursor: pointer;
}

.nav-icon { font-size: 1.4rem; color: #4b5563; transition: 0.2s; }
.nav-text { font-size: 0.7rem; color: #4b5563; font-weight: 600; transition: 0.2s; }

.nav-item.active .nav-icon { color: var(--primary); transform: translateY(-2px); text-shadow: 0 0 15px rgba(251, 191, 36, 0.4); }
.nav-item.active .nav-text { color: var(--text-main); }

/* UTILS */
.hidden { display: none !important; }
.btn-main { width: 100%; background: var(--primary); color: #000; padding: 16px; border-radius: 14px; border: none; font-weight: 700; font-size: 1rem; margin-top: 10px; }
.input-dark { width: 100%; background: rgba(0,0,0,0.3); border: 1px solid var(--border); color: #fff; padding: 16px; border-radius: 12px; margin-bottom: 12px; font-size: 1rem; }
.auth-container { display: flex; flex-direction: column; justify-content: center; height: 100%; padding: 30px; }
