.mg-wallet-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    color: #1a1f36;
}

.mg-wallet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.mg-wallet-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.mg-balance-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.mg-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #e3e8ee;
    display: flex;
    flex-direction: column;
}

.mg-card h3 {
    margin: 0 0 16px 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #697386;
}

.mg-amount {
    font-size: 42px;
    font-weight: 700;
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 24px;
}

.mg-symbol, .mg-currency {
    font-size: 20px;
    color: #8792a2;
    font-weight: 500;
}

/* Buttons */
.mg-btn-primary {
    background: #635bff;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: auto;
}

.mg-btn-primary:hover {
    background: #4b45c6;
}

.mg-btn-secondary {
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mg-btn-secondary:hover {
    background: #edf2f7;
    color: #2d3748;
}

.mg-hint {
    font-size: 13px;
    color: #a0aec0;
    margin: 0;
    margin-top: auto;
}

.mg-wallet-loading, .mg-wallet-error {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #697386;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Progress Bar */
.mg-progress-bar-bg {
    background: #edf2f7;
    border-radius: 8px;
    height: 12px;
    width: 100%;
    overflow: hidden;
    margin: 8px 0;
}
.mg-progress-bar-fill {
    background: linear-gradient(90deg, #635bff, #00d4ff);
    height: 100%;
    border-radius: 8px;
    transition: width 1s ease-in-out;
}
.mg-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 500;
    color: #4a5568;
}

/* Badges */
.mg-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.mg-bronze { background: #ecc94b; color: #744210; }
.mg-silver { background: #e2e8f0; color: #4a5568; }
.mg-gold { background: #faf089; color: #744210; }
.mg-platinum { background: #e6fffa; color: #234e52; border: 1px solid #319795; }

/* Referral Link Box */
.mg-link-box {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}
.mg-link-box input {
    flex: 1;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #f7fafc;
    color: #4a5568;
    font-family: monospace;
    font-size: 14px;
}
.mg-referral-stats {
    display: flex;
    gap: 30px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #edf2f7;
}
.mg-stat { display: flex; flex-direction: column; }
.mg-stat-val { font-size: 24px; font-weight: 700; color: #1a202c; }
.mg-stat-label { font-size: 13px; color: #718096; }