/* =========================================================
   TRUSTLINE PAY – FINTECH DESIGN SYSTEM
   Bootstrap 5 First | Compact | Enterprise-grade
   ========================================================= */

/* =======================
   1. DESIGN TOKENS
   ======================= */
:root {
    /* Brand */
    --mp-green: #00A651;
    --mp-green-dark: #008A45;
    --mp-green-soft: #E9F7EF;

    /* Dark Authority */
    --mp-dark: #0f172a;        /* primary buttons */
    --mp-dark-hover: #020617; /* hover */

    /* Backgrounds */
    --bg-main: #F6F7F9;
    --bg-card: #FFFFFF;

    /* Text */
    --text-dark: #111827;
    --text-muted: #6B7280;

    /* Borders & Radius */
    --border-soft: #E5E7EB;
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;

    /* Shadow */
    --shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.06);
}

/* =======================
   2. GLOBAL RESET
   ======================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.5;
    font-size: 14px; /* compact by default */
}

/* Links */
a {
    color: var(--mp-green);
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    color: var(--mp-green-dark);
}

/* =======================
   3. TYPOGRAPHY
   ======================= */
h1 { font-size: 1.75rem; font-weight: 700; }
h2 { font-size: 1.4rem;  font-weight: 700; }
h3 { font-size: 1.2rem;  font-weight: 700; }
h4, h5, h6 { font-weight: 600; }

.text-muted {
    color: var(--text-muted) !important;
}

/* =======================
   4. HEADER
   ======================= */
.mp-header {
    background: var(--mp-green);
    color: #fff;
    padding: 0.9rem 1.25rem;
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
}

.mp-header h5,
.mp-header small {
    margin: 0;
    color: #fff;
}

.mp-header .btn {
    color: #fff;
}

/* =======================
   5. CARDS
   ======================= */
.mp-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
}

.mp-card .card-body {
    padding: 1.25rem;
}

/* =======================
   6. BUTTONS (COMPACT & DARK)
   ======================= */
.btn-mp {
    background: var(--mp-dark);
    color: #fff;
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 0.55rem 1rem;
    border: none;
    font-size: 0.85rem;
}

.btn-mp:hover {
    background: var(--mp-dark-hover);
    color: #fff;
}

/* Secondary / Outline */
.btn-mp-outline {
    background: transparent;
    border: 1.5px solid var(--mp-green);
    color: var(--mp-green);
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.9rem;
    font-size: 0.85rem;
}

.btn-mp-outline:hover {
    background: var(--mp-green-soft);
}

/* =======================
   7. FORMS (COMPACT & PRECISE)
   ======================= */
.form-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
}

.form-control,
.form-select {
    padding: 0.5rem 0.65rem;
    border-radius: var(--radius-xs);
    border: 1px solid var(--border-soft);
    font-size: 0.85rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--mp-green);
    box-shadow: 0 0 0 0.12rem rgba(0, 166, 81, 0.2);
}

/* =======================
   8. AMOUNTS & METRICS
   ======================= */
.mp-amount {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--mp-green);
}

.mp-amount-sm {
    font-size: 1rem;
    font-weight: 600;
}

/* =======================
   9. TRANSACTIONS
   ======================= */
.mp-tx {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-soft);
}

.mp-tx:last-child {
    border-bottom: none;
}

.mp-tx-title {
    font-weight: 600;
    font-size: 0.85rem;
}

.mp-tx-date {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* =======================
   10. BADGES
   ======================= */
.mp-badge-success {
    background: var(--mp-green-soft);
    color: var(--mp-green);
    font-weight: 600;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 0.65rem;
}

/* =======================
   11. FOOTER
   ======================= */
.mp-footer {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* =======================
   12. SAFE AREAS
   ======================= */
.safe-top {
    padding-top: env(safe-area-inset-top);
}

.safe-bottom {
    padding-bottom: env(safe-area-inset-bottom);
}

/* =======================
   13. UTILITIES
   ======================= */
.shadow-soft {
    box-shadow: var(--shadow-soft);
}

/* =======================
   14. RESPONSIVE TWEAKS
   ======================= */
@media (max-width: 768px) {
    body {
        font-size: 13.5px;
    }

    .mp-header {
        padding-top: calc(0.9rem + env(safe-area-inset-top));
    }
}

/* =======================
   15. WALLET (MOBILE-FIRST)
   ======================= */

.wallet-wrap {
    background: #F2F8F2;
    min-height: 100vh;
}

/* Balance Card */
.wallet-balance {
    background: #4CAF50;
    color: #ffffff;
    border-radius: 18px;
    padding: 1.25rem;
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.25);
}

.wallet-balance h6 {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.wallet-balance .amount {
    font-size: 1.9rem;
    font-weight: 700;
}

.wallet-balance .meta {
    font-size: 0.75rem;
    opacity: 0.85;
}

/* Section Card */
.wallet-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
    margin-bottom: 1rem;
}

/* Wallet Buttons */
.btn-wallet {
    background: #E8F5E9;
    color: #2E7D32;
    border-radius: 14px;
    padding: 0.7rem 1rem;
    font-weight: 600;
    border: none;
}

.btn-wallet-outline {
    background: transparent;
    border: 2px solid #2E7D32;
    color: #2E7D32;
    border-radius: 14px;
    padding: 0.7rem 1rem;
    font-weight: 600;
}

