:root {
    --mf-ink: #172235;
    --mf-muted: #687386;
    --mf-paper: #f4f0e8;
    --mf-card: #fffdf9;
    --mf-line: #ddd5c7;
    --mf-coral: #f25f3a;
    --mf-coral-dark: #cf4525;
    --mf-mint: #16866f;
    --mf-navy: #172235;
}

html, body {
    background: var(--mf-paper) !important;
    color: var(--mf-ink) !important;
    font-family: "DM Sans", sans-serif !important;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .24;
    background-image: radial-gradient(rgba(23,34,53,.12) .6px, transparent .6px);
    background-size: 9px 9px;
}

h1, h2, h3, h4, .font-black, .font-extrabold {
    font-family: "Manrope", sans-serif !important;
    letter-spacing: -.025em;
}

.mf-shell {
    width: min(100%, 480px);
    min-height: 100vh;
    margin: 0 auto;
    position: relative;
    background: var(--mf-paper);
    padding-bottom: 104px;
}

.mf-card, .glass-card,
[class*="bg-[#121828]"], [class*="bg-cardDark"] {
    background: var(--mf-card) !important;
    color: var(--mf-ink) !important;
    border-color: var(--mf-line) !important;
    box-shadow: 0 12px 34px rgba(23,34,53,.07) !important;
}

[class*="bg-[#f8fafc]"], [class*="bg-appBg"] { background: var(--mf-paper) !important; }
[class*="text-[#f3f4f6]"] { color: var(--mf-ink) !important; }
[class*="bg-[#121828]"] [class*="text-white"] { color: var(--mf-ink) !important; }
.mf-balance [class*="text-white"], .mf-panel > [class*="bg-[#172235]"] [class*="text-white"], section[class*="bg-[#172235]"] [class*="text-white"] { color: #fff !important; }
.text-qGreen, .text-blue-500, .text-blue-600 { color: var(--mf-coral) !important; }
.bg-qGreen, .bg-blue-500, .bg-blue-600 { background: var(--mf-coral) !important; color: white !important; }
.border-qGreen, .border-blue-500, .border-blue-600 { border-color: var(--mf-coral) !important; }

input, select, textarea, .form-control {
    background: #fff !important;
    color: var(--mf-ink) !important;
    border-color: var(--mf-line) !important;
    border-radius: 14px !important;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--mf-coral) !important;
    box-shadow: 0 0 0 4px rgba(242,95,58,.12) !important;
}

button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(242,95,58,.35); outline-offset: 2px; }

.mf-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 12px;
    background: rgba(244,240,232,.88);
    backdrop-filter: blur(18px);
}
.mf-wordmark { font: 800 19px/1 "Manrope", sans-serif; color: var(--mf-ink); }
.mf-wordmark i { color: var(--mf-coral); font-style: normal; }
.mf-eyebrow { color: var(--mf-coral); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }

.mf-balance {
    margin: 8px 16px 18px;
    padding: 22px;
    border-radius: 26px;
    color: #fff;
    overflow: hidden;
    position: relative;
    background: var(--mf-navy);
    box-shadow: 0 22px 44px rgba(23,34,53,.20);
}
.mf-balance::after {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    right: -70px;
    top: -90px;
    border: 35px solid rgba(242,95,58,.9);
    border-radius: 50%;
}
.mf-balance * { position: relative; z-index: 1; }
.mf-balance-label { color: #abb5c5; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.mf-balance-value { margin-top: 5px; font: 800 30px/1.2 "Manrope", sans-serif; }
.mf-balance-meta { display: flex; gap: 24px; margin-top: 22px; }
.mf-balance-meta span { display: block; color: #abb5c5; font-size: 10px; }
.mf-balance-meta strong { display: block; margin-top: 3px; font-size: 14px; }

.mf-section { padding: 0 16px; margin-top: 22px; }
.mf-section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 11px; }
.mf-section-title { font: 800 16px/1.2 "Manrope", sans-serif; }
.mf-section-link { color: var(--mf-coral); font-size: 11px; font-weight: 800; text-decoration: none; }
.mf-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.mf-action { padding: 13px 5px; border: 1px solid var(--mf-line); border-radius: 18px; background: var(--mf-card); text-align: center; text-decoration: none; color: var(--mf-ink); }
.mf-action-icon { width: 38px; height: 38px; margin: 0 auto 8px; display: grid; place-items: center; border-radius: 13px; background: #fff0e9; color: var(--mf-coral); font-size: 16px; }
.mf-action span { font-size: 10px; font-weight: 800; }
.mf-list { display: grid; gap: 10px; }
.mf-row { display: flex; align-items: center; gap: 13px; padding: 15px; border: 1px solid var(--mf-line); border-radius: 19px; background: var(--mf-card); text-decoration: none; color: var(--mf-ink); }
.mf-row-icon { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 14px; background: #ebe5da; color: var(--mf-navy); }
.mf-row-main { flex: 1; min-width: 0; }
.mf-row-title { font: 800 13px/1.25 "Manrope", sans-serif; }
.mf-row-copy { margin-top: 3px; color: var(--mf-muted); font-size: 10px; line-height: 1.4; }
.mf-chip { padding: 6px 9px; border-radius: 999px; background: #e4f4ef; color: var(--mf-mint); font-size: 9px; font-weight: 800; }

.mf-nav {
    position: fixed;
    left: 50%;
    bottom: 14px;
    z-index: 60;
    width: min(calc(100% - 28px), 452px);
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 8px;
    border: 1px solid var(--mf-line);
    border-radius: 22px;
    background: rgba(255,253,249,.94);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 42px rgba(23,34,53,.14);
}
.mf-nav a { display: grid; place-items: center; gap: 4px; min-height: 48px; border-radius: 15px; color: #8992a1; text-decoration: none; font-size: 9px; font-weight: 800; }
.mf-nav a.active { background: var(--mf-navy); color: white; }
.mf-nav i { font-size: 16px; }
.mf-svg { width: 20px; height: 20px; display: block; }
.mf-nav .mf-svg { width: 18px; height: 18px; }
.mf-pagebar { position: sticky; top: 0; z-index: 45; display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; gap: 10px; min-height: 72px; padding: 10px 18px; background: rgba(244,240,232,.9); backdrop-filter: blur(18px); }
.mf-page-logo, .mf-icon-button { width: 42px; height: 42px; border-radius: 14px; }
.mf-icon-button { display: grid; place-items: center; border: 1px solid var(--mf-line); background: var(--mf-card); color: var(--mf-ink); }
.mf-pagebar-copy { min-width: 0; }
.mf-pagebar-copy span { display: block; color: var(--mf-coral); font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.mf-pagebar-copy strong { display: block; overflow: hidden; margin-top: 2px; font: 800 16px/1.2 "Manrope",sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.mf-pagebar-spacer { width: 42px; }
.mf-content { padding: 8px 16px 28px; }
.mf-panel { border: 1px solid var(--mf-line); border-radius: 22px; background: var(--mf-card); box-shadow: 0 12px 34px rgba(23,34,53,.06); }
.mf-panel-pad { padding: 18px; }
.mf-grid { display: grid; gap: 12px; }
.mf-grid-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.mf-primary-button { width: 100%; min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 15px; background: var(--mf-navy); color: #fff !important; font: 800 13px "Manrope",sans-serif; text-decoration: none; cursor: pointer; }
.mf-secondary-button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--mf-line); border-radius: 14px; background: var(--mf-card); color: var(--mf-ink); font-weight: 800; text-decoration: none; }
.mf-field { margin-bottom: 15px; }
.mf-field label { display: block; margin-bottom: 7px; color: var(--mf-muted); font-size: 11px; font-weight: 800; }
.mf-field input, .mf-field select, .mf-field textarea { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid var(--mf-line); }
.mf-stat { padding: 15px; border: 1px solid var(--mf-line); border-radius: 18px; background: var(--mf-card); }
.mf-stat span { display: block; color: var(--mf-muted); font-size: 10px; font-weight: 700; }
.mf-stat strong { display: block; margin-top: 5px; font: 800 16px "Manrope",sans-serif; }
.mf-notice { display: flex; align-items: flex-start; gap: 10px; padding: 13px 14px; border-radius: 16px; background: #fff0e9; color: #8b351f; font-size: 11px; line-height: 1.55; }
.mf-empty { padding: 42px 20px; text-align: center; color: var(--mf-muted); }
.mf-empty .mf-svg { width: 36px; height: 36px; margin: 0 auto 10px; color: var(--mf-coral); }

@media (min-width: 900px) {
    .mf-shell { width: min(calc(100% - 48px), 1180px); max-width: 1180px; }
    .mf-content { padding: 18px 28px 42px; }
    .mf-desktop-grid { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(320px,.75fr); gap: 20px; align-items: start; }
    .mf-actions { grid-template-columns: repeat(4,minmax(120px,1fr)); }
    .mf-nav { width: min(calc(100% - 48px), 760px); }
}

/* Menyatukan navigasi lama di Produk, Tim, dan Profil dengan shell baru. */
.fixed.bottom-0.left-0.right-0.max-w-md > div {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    margin: 0 14px 14px !important;
    padding: 8px !important;
    border: 1px solid var(--mf-line) !important;
    border-radius: 22px !important;
    background: rgba(255,253,249,.94) !important;
    box-shadow: 0 18px 42px rgba(23,34,53,.14) !important;
}
.fixed.bottom-0.left-0.right-0.max-w-md > div > a {
    min-height: 48px;
    justify-content: center;
    border-radius: 15px;
    color: #8992a1 !important;
}

.auth-page { background: var(--mf-paper) !important; }
.auth-shell { background: transparent !important; color: var(--mf-ink) !important; }
.auth-submit { background: var(--mf-navy) !important; border-radius: 15px !important; box-shadow: none !important; }
.auth-security-badge { background: #e4f4ef !important; color: var(--mf-mint) !important; border-color: #bce2d7 !important; }
.auth-title, .auth-copy, .brand-name, .auth-field label { color: var(--mf-ink) !important; }
.auth-link { color: var(--mf-coral) !important; }
.auth-ojk-trust { display: none !important; }

@media (min-width: 640px) {
    .mf-shell { margin-top: 18px; min-height: calc(100vh - 36px); border: 1px solid var(--mf-line); border-radius: 30px; overflow: hidden; box-shadow: 0 30px 80px rgba(23,34,53,.16); }
}
