:root {
    --bg-app: #000000;
    --bg-card: #1c1c1e;
    --bg-input: #2c2c2e;
    --primary: #00ff88;
    --text-main: #ffffff;
    --text-muted: #8e8e93;
    --danger: #ff453a;
    --border: #2c2c2e;
    --nav-height: 60px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, sans-serif; background: var(--bg-app); color: var(--text-main); height: 100vh; overflow: hidden; }

/* LOGIN */
.auth-container { height: 100%; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at top right, #1a2a22, #000); padding: 20px; }
.auth-box { width: 100%; max-width: 350px; text-align: center; }
.brand-logo i { font-size: 40px; color: var(--primary); margin-bottom: 20px; }
.input-group { background: var(--bg-input); border-radius: 12px; display: flex; align-items: center; padding: 0 15px; margin-bottom: 15px; }
.input-group input { background: transparent; border: none; color: #fff; width: 100%; padding: 15px; font-size: 16px; outline: none; }
.btn-primary { background: var(--primary); color: #000; font-weight: 700; width: 100%; padding: 16px; border: none; border-radius: 12px; font-size: 16px; margin-top: 10px; cursor: pointer; }
.msg-error { color: var(--danger); margin-top: 15px; font-size: 14px; }

/* APP LAYOUT */
.app-container { display: flex; flex-direction: column; height: 100%; }
.app-header { height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; background: rgba(28,28,30,0.9); border-bottom: 1px solid var(--border); padding-top: env(safe-area-inset-top); }
.app-header h1 { font-size: 20px; margin: 0; font-weight: 700; }
.icon-btn { background: none; border: none; color: var(--text-muted); font-size: 18px; padding: 10px; cursor: pointer; }
.content-area { flex: 1; overflow-y: auto; padding: 16px; padding-bottom: 80px; }

/* COMPONENTS */
.m-card { background: var(--bg-card); border-radius: 12px; padding: 16px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--border); }
.m-card-row { display: flex; justify-content: space-between; align-items: center; }
.m-label { font-size: 12px; color: var(--text-muted); }
.m-val { font-size: 14px; font-weight: 500; }
.m-val.bold { font-weight: 700; font-size: 16px; }
.m-val.highlight { color: var(--primary); }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.stat-box { background: var(--bg-card); padding: 16px; border-radius: 12px; text-align: center; }
.stat-num { display: block; font-size: 24px; font-weight: 700; color: var(--primary); margin-top: 5px; }

/* ACTIONS & BADGES */
.actions { display: flex; gap: 10px; margin-top: 10px; }
.btn-sm { flex: 1; padding: 10px; border-radius: 8px; border: none; font-weight: 600; font-size: 13px; cursor: pointer; }
.btn-approve { background: var(--primary); color: #000; }
.btn-reject { background: #333; color: #fff; }
.badge { padding: 4px 8px; border-radius: 4px; font-size: 10px; font-weight: 700; }
.badge.pending { background: rgba(255,165,0,0.2); color: orange; }
.badge.completed { background: rgba(0,255,136,0.2); color: var(--primary); }
.badge.rejected { background: rgba(255,69,58,0.2); color: var(--danger); }

/* BOTTOM NAV */
.bottom-nav { height: 60px; background: #121212; border-top: 1px solid var(--border); display: flex; justify-content: space-around; align-items: center; position: fixed; bottom: 0; width: 100%; padding-bottom: env(safe-area-inset-bottom); }
.nav-item { text-decoration: none; color: var(--text-muted); display: flex; flex-direction: column; align-items: center; font-size: 10px; gap: 4px; position: relative; width: 20%; }
.nav-item i { font-size: 20px; }
.nav-item.active { color: var(--primary); }
.nav-badge { position: absolute; top: -5px; right: 15px; background: var(--danger); color: white; font-size: 10px; padding: 2px 5px; border-radius: 10px; }

/* MODALS */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 200; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.modal-content { background: var(--bg-card); width: 95%; max-width: 400px; border-radius: 16px; border: 1px solid var(--border); display: flex; flex-direction: column; max-height: 90vh; }
.modal-header { padding: 16px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.modal-body { padding: 16px; overflow-y: auto; }
.modal-actions { padding: 16px; border-top: 1px solid var(--border); display: flex; gap: 10px; }

/* CHAT STYLES */
.chat-bubble { padding: 8px 12px; border-radius: 12px; max-width: 80%; font-size: 13px; margin-bottom: 8px; word-wrap: break-word; }
.chat-admin { align-self: flex-end; background: #004d26; color: white; border-bottom-right-radius: 2px; }
.chat-user { align-self: flex-start; background: #333; color: white; border-bottom-left-radius: 2px; }
.chat-time { font-size: 9px; opacity: 0.6; text-align: right; margin-top: 2px; }
.kyc-img { width: 100%; border-radius: 8px; margin-bottom: 10px; border: 1px solid #333; }