* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --mb-bg: #f4f5f7;
    --mb-white: #ffffff;
    --mb-primary: #1b4332;
    --mb-primary-light: #2d6a4f;
    --mb-gold: #b8860b;
    --mb-text: #212529;
    --mb-text2: #6c757d;
    --mb-muted: #adb5bd;
    --mb-border: #dee2e6;
    --mb-green: #198754;
    --mb-red: #dc3545;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: var(--mb-bg);
    color: var(--mb-text);
    min-height: 100vh;
}

.mb-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 56px;
    background: var(--mb-primary);
    border-bottom: 3px solid var(--mb-gold);
}

.mb-brand {
    color: var(--mb-gold);
    font-size: 1.1rem;
    font-weight: 700;
}

.mb-nav-r {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mb-link {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.85rem;
    font-family: -apple-system, sans-serif;
}

.mb-link:hover, .mb-link.active { color: var(--mb-gold); }

.mb-user {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    font-family: -apple-system, sans-serif;
}

.mb-btn {
    display: inline-block;
    padding: 0.45rem 1rem;
    background: var(--mb-primary-light);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: -apple-system, sans-serif;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
}

.mb-btn:hover { background: var(--mb-primary); }
.mb-btn.outline { background: transparent; color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.3); }
.mb-btn.lg { padding: 0.65rem 2rem; font-size: 1rem; }
.mb-btn.sm { padding: 0.25rem 0.6rem; font-size: 0.8rem; }
.mb-btn.block { width: 100%; text-align: center; }

/* Hero */
.mb-hero {
    text-align: center;
    padding: 6rem 2rem 4rem;
    max-width: 700px;
    margin: 0 auto;
}

.mb-hero h1 {
    font-size: 2.5rem;
    color: var(--mb-primary);
    margin-bottom: 1rem;
}

.mb-hero > p {
    font-size: 1.1rem;
    color: var(--mb-text2);
    margin-bottom: 2.5rem;
    font-family: -apple-system, sans-serif;
}

.mb-hero-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.mb-hcard {
    background: var(--mb-white);
    border: 1px solid var(--mb-border);
    border-radius: 8px;
    padding: 1.5rem;
}

.mb-hcard span { font-size: 2rem; }
.mb-hcard h3 { font-size: 1rem; margin: 0.5rem 0 0.2rem; font-family: -apple-system, sans-serif; }
.mb-hcard p { font-size: 0.85rem; color: var(--mb-text2); font-family: -apple-system, sans-serif; }

/* Login */
.mb-login-bg {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--mb-primary) 0%, var(--mb-primary-light) 100%);
}

.mb-login-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 2rem;
}

.mb-login-card {
    width: 100%;
    max-width: 380px;
    background: var(--mb-white);
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.mb-login-head { text-align: center; margin-bottom: 2rem; }
.mb-login-head h1 { font-size: 1.3rem; color: var(--mb-primary); }
.mb-login-head p { color: var(--mb-text2); font-size: 0.9rem; font-family: -apple-system, sans-serif; }

.mb-form { display: flex; flex-direction: column; gap: 0.75rem; }

.mb-form input, .mb-input {
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--mb-border);
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: -apple-system, sans-serif;
}

.mb-form input:focus, .mb-input:focus {
    outline: none;
    border-color: var(--mb-primary);
}

.mb-alert {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: var(--mb-red);
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    font-family: -apple-system, sans-serif;
}

.mb-login-demo {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--mb-muted);
    font-family: -apple-system, sans-serif;
}

.mb-login-demo code {
    background: var(--mb-bg);
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
}

/* Content */
.mb-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    font-family: -apple-system, sans-serif;
}

.mb-content h1 { font-size: 1.4rem; margin-bottom: 1.5rem; font-family: Georgia, serif; }
.mb-content h2 { font-size: 1.1rem; margin-bottom: 0.8rem; font-family: Georgia, serif; }

/* Balance */
.mb-balance-card {
    background: var(--mb-primary);
    color: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.mb-balance-label { font-size: 0.85rem; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.1em; }
.mb-balance-val { font-size: 2.5rem; font-weight: 700; margin: 0.5rem 0; font-family: Georgia, serif; }
.mb-balance-acct { font-size: 0.85rem; opacity: 0.6; }

/* Transfer */
.mb-transfer {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.mb-transfer input {
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--mb-border);
    border-radius: 4px;
    font-size: 0.9rem;
    width: 160px;
}

.mb-result {
    font-size: 0.85rem;
    min-height: 1.5rem;
    color: var(--mb-text2);
}

/* Section */
.mb-section {
    background: var(--mb-white);
    border: 1px solid var(--mb-border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.mb-section p { font-size: 0.9rem; color: var(--mb-text2); margin-bottom: 0.5rem; }

/* Table */
.mb-table {
    width: 100%;
    border-collapse: collapse;
}

.mb-table th {
    padding: 0.5rem 0.8rem;
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mb-text2);
    border-bottom: 2px solid var(--mb-border);
}

.mb-table td {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--mb-border);
}

.mb-badge {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
}

.mb-badge.debit { background: #f8d7da; color: var(--mb-red); }
.mb-badge.credit { background: #d1e7dd; color: var(--mb-green); }

.muted { color: var(--mb-muted); font-size: 0.9rem; }

/* Manager */
.mb-inline {
    display: flex;
    gap: 0.5rem;
    margin: 0.8rem 0;
}

.mb-inline .flex { flex: 1; }

.mb-pre {
    margin-top: 0.8rem;
    padding: 1rem;
    background: #1e1e1e;
    color: #d4d4d4;
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: monospace;
    max-height: 300px;
    overflow: auto;
    white-space: pre-wrap;
    display: none;
}

.mb-pre:not(:empty) { display: block; }

/* Error */
.mb-error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
}

.mb-error-page h1 { font-size: 5rem; color: var(--mb-primary); }
.mb-error-page p { color: var(--mb-text2); margin-bottom: 2rem; }

.mb-footer {
    text-align: center;
    padding: 2rem;
    color: var(--mb-muted);
    font-size: 0.8rem;
    font-family: -apple-system, sans-serif;
}

@media (max-width: 600px) {
    .mb-hero-grid { grid-template-columns: 1fr; }
    .mb-transfer { flex-direction: column; }
    .mb-transfer input { width: 100%; }
}
