:root {
    --bg: #313338; --card: #2B2D31; --nav: #1E1F22;
    --primary: #5865F2; --green: #23A559; --red: #ED4245; --yellow: #FEE75C;
    --text: #DBDEE1; --muted: #949BA4; --white: #FFFFFF;
}
.light {
    --bg: #F2F3F5; --card: #FFFFFF; --nav: #EBEDEF;
    --text: #2E3338; --muted: #5C6370; --white: #000000;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; font-family: 'Segoe UI', Roboto, sans-serif; }
body { margin: 0; background: var(--bg); color: var(--text); height: 100vh; overflow: hidden; display: flex; flex-direction: column; }

main { flex: 1; overflow-y: auto; padding-bottom: 100px; }
.p-5 { padding: 1.25rem; }
.flex { display: flex; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.grid { display: grid; gap: 1rem; }

.card { background: var(--card); border-radius: 1.25rem; padding: 1.25rem; border: 1px solid rgba(255,255,255,0.05); }
.border-p { border-left: 5px solid var(--primary); }
.border-g { border-left: 5px solid var(--green); }
.border-y { border-left: 5px solid var(--yellow); }

input, textarea { 
    width: 100%; background: #1e1f22; border: 1px solid #3f4147; 
    color: white; padding: 0.8rem; border-radius: 0.8rem; margin-top: 0.5rem; outline: none;
}
.light input, .light textarea { background: #fff; border: 1px solid #ddd; color: #000; }

.btn { border: none; border-radius: 0.8rem; padding: 1rem; font-weight: 800; text-transform: uppercase; cursor: pointer; width: 100%; color: white; transition: 0.2s; }
.btn-p { background: var(--primary); }
.btn-g { background: var(--green); }
.btn-small { padding: 5px 10px; font-size: 10px; width: auto; }

nav { position: fixed; bottom: 0; width: 100%; height: 80px; background: var(--nav); display: flex; justify-content: space-around; align-items: center; border-top: 1px solid rgba(255,255,255,0.1); z-index: 100; }
.nav-item { background: none; border: none; color: var(--muted); display: flex; flex-direction: column; align-items: center; font-size: 9px; font-weight: bold; width: 20%; cursor: pointer; }
.nav-item.active { color: var(--primary); }
.nav-item svg { width: 22px; height: 22px; margin-bottom: 4px; }

#modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.85); display: none; align-items: center; justify-content: center; z-index: 200; padding: 1rem; }
.modal-box { background: var(--card); width: 100%; max-width: 500px; border-radius: 1.5rem; padding: 1.5rem; max-height: 85vh; overflow-y: auto; }
