:root {
    --primary: #0061da;
    --primary-dark: #004ba0;
    --bg-light: #f8f9fa;
    --card-bg: #ffffff;
    --text-main: #2d3436;
    --text-dim: #636e72;
    --border-color: #ebedef;
    --success: #00b894;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: var(--bg-light);
    color: var(--text-main);
    padding-bottom: 80px;
}

.hidden { display: none !important; }

/* Splash */
.splash-screen {
    position: fixed;
    inset: 0;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

/* Auth */
.auth-section {
    height: 100vh;
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.input-group {
    margin-bottom: 15px;
    position: relative;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
}

.input-group input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    outline: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 10px;
    width: 100%;
    font-weight: 600;
    cursor: pointer;
}

/* Header */
.app-header {
    background: var(--primary);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.user-info { display: flex; align-items: center; gap: 12px; }
#user-img { width: 45px; height: 45px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.3); }
.status-badge { background: #00b894; padding: 2px 8px; border-radius: 10px; font-size: 0.7rem; }

/* Blue Section */
.blue-header-section {
    background: var(--primary);
    padding: 0 20px 40px;
    border-radius: 0 0 30px 30px;
    margin-bottom: 20px;
}

.main-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.mini-stat-card {
    background: rgba(255,255,255,0.15);
    padding: 15px 5px;
    border-radius: 12px;
    text-align: center;
    color: white;
}

.mini-stat-card h2 { font-size: 1rem; }
.mini-stat-card span { font-size: 0.6rem; opacity: 0.8; }

/* Status Cards */
.status-grid { padding: 0 20px; margin-bottom: 25px; }
.status-grid h4 { margin-bottom: 15px; color: var(--text-main); }
.status-card {
    background: white;
    padding: 12px 15px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.status-left { display: flex; align-items: center; gap: 12px; }
.status-icon { width: 35px; height: 35px; border-radius: 8px; display: flex; justify-content: center; align-items: center; }
.status-icon.blue { background: #e3f2fd; color: #1976d2; }
.status-icon.yellow { background: #fffde7; color: #fbc02d; }
.status-icon.green { background: #e8f5e9; color: #388e3c; }

.status-card .count { font-weight: 700; color: #2d3436; }

/* Profile */
.profile-header-card {
    background: linear-gradient(135deg, var(--primary) 0%, #00a8ff 100%);
    margin: 20px;
    padding: 25px;
    border-radius: 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-main-info { display: flex; align-items: center; gap: 15px; }
#profile-img { width: 60px; height: 60px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.3); }

.profile-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; padding: 0 20px; }
.p-stat-card { background: white; padding: 15px 5px; border-radius: 12px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.p-stat-card i { font-size: 1rem; color: var(--primary); margin-bottom: 5px; }
.p-stat-card h3 { font-size: 0.9rem; }
.p-stat-card span { font-size: 0.6rem; color: var(--text-dim); }

.profile-menu { list-style: none; padding: 20px; }
.profile-menu li { background: white; padding: 15px; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; gap: 15px; }
.profile-menu li i:first-child { color: var(--primary); width: 20px; }
.profile-menu li i:last-child { margin-left: auto; font-size: 0.7rem; color: #ccc; }

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 10px 5px 25px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.nav-item { color: #b2bec3; border: none; background: none; display: flex; align-items: center; gap: 5px; padding: 8px 12px; border-radius: 20px; transition: 0.3s; }
.nav-item.active { background: var(--primary); color: white; }
.nav-item i { font-size: 1.2rem; }
.nav-item span { font-size: 0.75rem; font-weight: 600; display: none; }
.nav-item.active span { display: block; }

/* Toast */
.toast { position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%); background: var(--primary); color: white; padding: 10px 20px; border-radius: 20px; font-size: 0.8rem; z-index: 3000; }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: flex-end; z-index: 2500; }
.modal-content { background: white; width: 100%; border-radius: 20px 20px 0 0; padding: 25px; }
.modal-header { display: flex; justify-content: space-between; margin-bottom: 20px; }
.close-modal { border: none; background: #f1f3f5; width: 30px; height: 30px; border-radius: 50%; }

.icon-btn { border: none; background: rgba(255,255,255,0.1); color: white; width: 35px; height: 35px; border-radius: 50%; }

.order-card { background: white; margin: 0 20px 10px; padding: 15px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.order-id { color: var(--primary); font-weight: 700; }
.order-top { display: flex; justify-content: space-between; margin-bottom: 10px; }
.order-status { font-size: 0.7rem; background: #f1f3f5; padding: 2px 8px; border-radius: 5px; }
.amount { font-weight: 700; color: var(--primary); }

.section-header { display: flex; justify-content: space-between; align-items: center; padding: 0 20px; margin-bottom: 15px; }
.text-link { color: var(--primary); border: none; background: none; font-size: 0.8rem; font-weight: 600; }
