:root {
    --primary: #6366f1;
    --secondary: #a855f7;
    --accent: #fbbf24;
    --bg: #020617;
    --glass: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
}

* { box-sizing: border-box; font-family: 'Inter', sans-serif; -webkit-tap-highlight-color: transparent; }

body {
    background: #000;
    margin: 0;
    display: flex;
    justify-content: center;
    color: #f8fafc;
}

/* Mobile Constraint */
.mobile-wrapper {
    width: 100%;
    max-width: 414px;
    min-height: 100vh;
    background: var(--bg);
    padding: 25px;
    position: relative;
    box-shadow: 0 0 100px rgba(99, 102, 241, 0.1);
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 25px;
    margin-bottom: 20px;
}

/* Inputs & Buttons */
input, select {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: 16px;
    color: white;
    font-size: 16px;
    margin-top: 8px;
}

.btn-main {
    width: 100%;
    padding: 18px;
    border-radius: 18px;
    border: none;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    margin-top: 15px;
    transition: 0.3s;
}

.btn-main:active { transform: scale(0.96); }

/* Alerts */
.alert { padding: 12px; border-radius: 12px; margin-bottom: 15px; font-size: 14px; text-align: center; }
.error { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.success { background: rgba(34, 197, 94, 0.2); color: #86efac; }

/* Dashboard Specifics */
.balance-display {
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    border-radius: 32px;
    padding: 30px;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

/* Modern Icon Buttons */
.nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.nav-item {
    text-decoration: none;
    text-align: center;
    transition: 0.3s;
}

.icon-box {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    position: relative;
    overflow: hidden;
}

.icon-box::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary), transparent);
    opacity: 0.1;
}

.nav-item:active .icon-box {
    transform: scale(0.9);
    background: rgba(255, 255, 255, 0.1);
}

.nav-label {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

/* Stats Styling */
.stats-container {
    display: flex;
    gap: 12px;
    margin-top: -15px; /* Pulls it slightly into the balance card area */
}

.stat-card {
    flex: 1;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 20px;
}

.stat-header {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}


.icon-box {
    width: 65px;
    height: 65px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.nav-item:hover .icon-box {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-3px);
}

.nav-label {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
