/* ==========================================================================
   MERIDIAN RESERVE — EXECUTIVE MODERN BANKING DESIGN SYSTEM
   Deep Royal Navy (#012169) · Vibrant Crimson (#E31837)
   Alabaster White (#FFFFFF) · Architectural Cool Silver (#F6F8FB)

   Satu berkas untuk seluruh halaman publik dan halaman member.
   Tanpa Tailwind CDN (CSP script-src 'self') dan tanpa atribut style inline.
   ========================================================================== */

:root {
  --navy: #012169;
  --navy-deep: #001544;
  --navy-light: #0A358C;
  --crimson: #E31837;
  --crimson-dark: #B8102B;
  --white: #FFFFFF;
  --porcelain: #F6F8FB;
  --ice: #EDF2F9;
  --ink: #0B162C;
  --muted: #5A6B84;
  --line: rgba(1, 33, 105, 0.10);
  --line-strong: rgba(1, 33, 105, 0.16);
  --emerald: #047857;
  --emerald-light: #6EE7B7;
  --rose-50: #FFF1F3;
  --blue-50: #EFF5FF;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --shell: 32rem;          /* max-w-lg */
  --dock-h: 72px;
}

/* --------------------------------------------------------------- 1. RESET */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100dvh;
  background-color: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol, menu { margin: 0; padding: 0; list-style: none; }
img, svg, canvas, video { display: block; max-width: 100%; }
svg { shape-rendering: geometricPrecision; }
svg.mrd-i { width: 18px; height: 18px; flex: 0 0 auto; display: inline-block; vertical-align: middle; }
a { color: inherit; text-decoration: none; }
b, strong { font-weight: 700; }
small { font-size: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
table { border-collapse: collapse; width: 100%; }
button, input, select, textarea {
  font: inherit; color: inherit; margin: 0;
  background: transparent; border: 0;
}
button { cursor: pointer; text-align: inherit; }
button:disabled, input:disabled, select:disabled { cursor: not-allowed; opacity: .55; }
select { -webkit-appearance: none; appearance: none; }
textarea { resize: vertical; }
::selection { background: var(--navy); color: #fff; }
:focus-visible { outline: 2px solid var(--crimson); outline-offset: 2px; }
[hidden] { display: none !important; }

.mrd-sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.mrd-skip {
  position: absolute; left: -9999px; top: 0; z-index: 90;
  background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 0 0 .75rem 0;
  font-size: 12px; font-weight: 700;
}
.mrd-skip:focus { left: 0; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ------------------------------------------------------- 2. LAYOUT SHELL */
.mrd-body { display: flex; flex-direction: column; min-height: 100dvh; background: var(--white); }
.mrd-shell { width: 100%; max-width: var(--shell); margin: 0 inline; margin-inline: auto; padding-inline: 1rem; }
.mrd-main { flex: 1 1 auto; display: flex; flex-direction: column; }
.mrd-view { flex: 1 1 auto; display: flex; flex-direction: column; animation: mrdPage .3s cubic-bezier(.16,1,.3,1) both; }
.mrd-band { width: 100%; padding-block: 2.25rem; }
.mrd-band--hero { position: relative; overflow: hidden; padding-block: 1.25rem 2.25rem;
  background: linear-gradient(180deg, var(--porcelain) 0%, #fff 62%, #fff 100%); }
.mrd-band--navy { background: var(--navy); color: #fff; }
.mrd-band--porcelain { background: var(--porcelain); border-bottom: 1px solid rgba(1,33,105,.08); }
.mrd-band--white { background: var(--white); }
.mrd-band--auth { background: var(--porcelain); padding-block: 1.25rem 3rem; flex: 1 1 auto; }
.mrd-stack > * + * { margin-top: var(--gap, 1rem); }
.mrd-stack--sm { --gap: .625rem; }
.mrd-stack--md { --gap: 1rem; }
.mrd-stack--lg { --gap: 1.5rem; }
.mrd-stack--xl { --gap: 1.75rem; }

@keyframes mrdPage { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes mrdLedger {
  0% { opacity: 0; transform: translateY(-8px); background-color: rgba(1,33,105,.05); }
  100% { opacity: 1; transform: none; background-color: transparent; }
}
.mrd-ledger-new { animation: mrdLedger .55s ease-out both; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ------------------------------------------------- 3. TYPOGRAPHY HELPERS */
.mrd-eyebrow {
  display: block; font-family: var(--mono); font-size: 9.5px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--crimson);
}
.mrd-eyebrow--navy { color: var(--navy); }
.mrd-eyebrow--rose { color: #FDA4AF; }
.mrd-eyebrow--muted { color: var(--muted); }
.mrd-display { font-family: var(--serif); font-weight: 400; color: var(--navy); letter-spacing: -.01em; }
h1.mrd-display { font-size: 34px; line-height: 1.06; }
h2.mrd-display { font-size: 26px; line-height: 1.18; margin-top: .125rem; }
h3.mrd-display { font-size: 20px; line-height: 1.2; }
.mrd-display em, .mrd-accent { font-style: italic; color: var(--crimson); }
.mrd-display--light, .mrd-band--navy .mrd-display { color: #fff; }
.mrd-lead { font-size: 13px; line-height: 1.65; color: var(--muted); }
.mrd-band--navy .mrd-lead { color: #BFD3F2; }
.mrd-note { font-size: 11px; line-height: 1.55; color: var(--muted); }
.mrd-mono { font-family: var(--mono); }
.mrd-num { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 800; }
.mrd-crimson { color: var(--crimson); }
.mrd-navy { color: var(--navy); }
.mrd-muted { color: var(--muted); }
.mrd-pos { color: var(--emerald); }
.mrd-neg { color: var(--crimson); }
.mrd-center { text-align: center; }
.mrd-right { text-align: right; }
.mrd-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

@media (min-width: 420px) { h1.mrd-display { font-size: 38px; } }

/* --------------------------------------------------------- 4. NAVIGATION */
.mrd-nav {
  position: sticky; top: 0; z-index: 40; width: 100%;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(1,33,105,.08);
}
.mrd-nav__accent { height: 3px; width: 100%; background: linear-gradient(90deg, var(--navy), var(--navy-light) 55%, var(--crimson)); }
.mrd-nav__in {
  max-width: var(--shell); margin-inline: auto; padding: .75rem 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: .625rem;
}
.mrd-brand { display: flex; align-items: center; gap: .625rem; text-align: left; }
.mrd-brand__mark { width: 36px; height: 36px; flex: 0 0 auto; border-radius: 11px; object-fit: contain; transition: transform .18s ease; }
.mrd-brand:active .mrd-brand__mark { transform: scale(.95); }
.mrd-brand__name {
  display: block; font-weight: 800; font-size: 14px; letter-spacing: .04em;
  line-height: 1; color: var(--navy); text-transform: uppercase;
}
.mrd-brand__name span { color: var(--crimson); }
.mrd-brand__sub {
  display: block; font-family: var(--mono); font-size: 8px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: .25rem;
}
.mrd-nav__actions { display: flex; align-items: center; gap: .375rem; flex: 0 0 auto; }
.mrd-nav__link {
  padding: .375rem .75rem; border-radius: .5rem; font-size: 12px; font-weight: 700;
  color: var(--navy); transition: background-color .2s ease;
}
.mrd-nav__link:hover { background: var(--porcelain); }
.mrd-nav__pill {
  display: inline-flex; align-items: center; gap: .375rem;
  padding: .375rem .75rem; border-radius: .5rem; background: var(--navy); color: #fff;
  font-family: var(--mono); font-size: 10.5px; font-weight: 700;
}
.mrd-dot-live { width: 6px; height: 6px; border-radius: 999px; background: #34D399; animation: mrdPulse 1.8s ease-in-out infinite; }
@keyframes mrdPulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ------------------------------------------------------------ 5. BUTTONS */
.mrd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1rem; border-radius: .75rem; font-size: 13px; font-weight: 700;
  line-height: 1.25; text-align: center;
  letter-spacing: -.01em; transition: transform .18s cubic-bezier(.22,1,.36,1), filter .2s ease, background-color .2s ease, color .2s ease;
}
.mrd-btn:active { transform: scale(.985); }
.mrd-btn--block { width: 100%; }
.mrd-btn--sm { padding: .45rem .75rem; font-size: 11.5px; border-radius: .625rem; white-space: nowrap; flex-shrink: 0; }
.mrd-btn--lg { padding: .875rem 1rem; font-size: 13.5px; }
.mrd-btn svg { width: 16px; height: 16px; flex: 0 0 auto; }
.mrd-btn--sm svg { width: 14px; height: 14px; }
.mrd-btn--crimson {
  background: linear-gradient(135deg, #EE1D3D 0%, var(--crimson) 55%, var(--crimson-dark) 100%);
  color: #fff; position: relative; overflow: hidden;
  box-shadow: 0 14px 28px -10px rgba(227,24,55,.45), inset 0 1px 0 rgba(255,255,255,.3);
}
.mrd-btn--crimson:hover { filter: brightness(1.05); }
.mrd-btn--navy {
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy) 60%, #001442 100%);
  color: #fff;
  box-shadow: 0 14px 28px -10px rgba(1,33,105,.42), inset 0 1px 0 rgba(255,255,255,.22);
}
.mrd-btn--navy:hover { filter: brightness(1.08); }
.mrd-btn--outline {
  background: #fff; border: 2px solid var(--navy); color: var(--navy);
}
.mrd-btn--outline:hover { background: var(--porcelain); }
.mrd-btn--outline-crimson { background: #fff; border: 1px solid var(--crimson); color: var(--crimson); }
.mrd-btn--outline-crimson:hover { background: var(--rose-50); }
.mrd-btn--soft { background: var(--porcelain); color: var(--navy); }
.mrd-btn--soft:hover { background: var(--navy); color: #fff; }
.mrd-btn--soft-crimson { background: var(--rose-50); color: var(--crimson); }
.mrd-btn--soft-crimson:hover { background: var(--crimson); color: #fff; }
.mrd-btn--ghost { color: var(--navy); }
.mrd-btn--ghost:hover { background: var(--porcelain); }
.mrd-btn--link { padding: 0; font-weight: 700; color: var(--crimson); font-size: 11px; font-family: var(--mono); }
.mrd-btn--link:hover { text-decoration: underline; }
.mrd-btn__icon { width: 16px; height: 16px; flex: 0 0 auto; }

.mrd-chip {
  display: inline-flex; align-items: center; gap: .375rem; flex-shrink: 0;
  padding: .25rem .625rem; border-radius: 999px; background: var(--porcelain);
  border: 1px solid var(--line); font-family: var(--mono); font-size: 9.5px;
  font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navy);
}
.mrd-chip svg { width: 12px; height: 12px; flex: 0 0 auto; }
.mrd-chip--crimson { background: var(--crimson); border-color: transparent; color: #fff; }
.mrd-chip--navy { background: var(--navy); border-color: transparent; color: #fff; }
.mrd-chip--rose { background: var(--rose-50); border-color: rgba(227,24,55,.18); color: var(--crimson); }
.mrd-chip--ok { background: #ECFDF5; border-color: rgba(4,120,87,.2); color: var(--emerald); }
.mrd-chip--warn { background: #FFFBEB; border-color: rgba(180,83,9,.2); color: #B45309; }
.mrd-chip--glass { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.25); color: #fff; }

.mrd-badge-live {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .25rem .75rem; border-radius: 999px; background: #fff;
  border: 1px solid rgba(1,33,105,.12); box-shadow: 0 1px 2px rgba(1,33,105,.06);
}
.mrd-badge-live > i { width: 8px; height: 8px; border-radius: 999px; background: var(--crimson); flex: 0 0 auto; }
.mrd-badge-live > span {
  font-family: var(--mono); font-size: 9.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--navy);
}

/* ------------------------------------------------------------- 6. GRIDS */
.mrd-grid { display: grid; gap: .75rem; }
.mrd-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mrd-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mrd-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mrd-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mrd-grid--7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.mrd-grid--tight { gap: .375rem; }
.mrd-grid--split { grid-template-columns: 7fr 5fr; gap: .625rem; }
.mrd-row { display: flex; align-items: center; justify-content: space-between; gap: .625rem; }
.mrd-row--start { align-items: flex-start; }
.mrd-row--end { align-items: flex-end; }
.mrd-row--base { align-items: baseline; }
.mrd-row--tight { gap: .375rem; }
.mrd-flow { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.mrd-scroller { display: flex; gap: .75rem; overflow-x: auto; padding-bottom: .25rem; }
.mrd-spacer { flex: 1 1 auto; }

/* --------------------------------------------- 7. SEGMENTED TAB SWITCHER */
.mrd-seg {
  display: grid; gap: .375rem; padding: .25rem; border-radius: .75rem;
  background: var(--ice); border: 1px solid rgba(1,33,105,.08);
}
.mrd-seg--2 { grid-template-columns: repeat(2, 1fr); }
.mrd-seg--3 { grid-template-columns: repeat(3, 1fr); }
.mrd-seg--4 { grid-template-columns: repeat(4, 1fr); }
.mrd-seg__btn {
  padding: .5rem .25rem; border-radius: .5rem; font-size: 11px; font-weight: 700;
  color: var(--muted); text-align: center; transition: all .2s ease;
}
.mrd-seg__btn:hover { color: var(--navy); }
.mrd-seg__btn.is-on { background: var(--navy); color: #fff; font-weight: 800; box-shadow: 0 1px 2px rgba(1,33,105,.2); }
.mrd-seg__btn.is-on-crimson { background: var(--crimson); color: #fff; font-weight: 800; box-shadow: 0 1px 2px rgba(227,24,55,.25); }
.mrd-band--navy .mrd-seg { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); }
.mrd-band--navy .mrd-seg__btn { color: #BFD3F2; font-family: var(--mono); font-size: 10.5px; }
.mrd-band--navy .mrd-seg__btn.is-on { background: #fff; color: var(--navy); }

/* -------------------------------------------------------------- 8. CARDS */
.mrd-card {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 1.25rem;
  box-shadow: 0 1px 2px rgba(1,33,105,.04);
}
.mrd-card--pad-sm { padding: .875rem; }
.mrd-card--form { border-radius: 24px; }
.mrd-card--flat { box-shadow: none; }
.mrd-card--navy {
  background: linear-gradient(145deg, var(--navy-light) 0%, var(--navy) 60%, #001442 100%);
  color: #fff; border-color: transparent; box-shadow: 0 10px 24px -14px rgba(1,33,105,.5);
}
.mrd-card--navy .mrd-display { color: #fff; }
.mrd-card--navy .mrd-lead, .mrd-card--navy .mrd-balance__hint { color: #DBEAFE; }
.mrd-card--navy .mrd-progress { background: rgba(255,255,255,.18); }
.mrd-card--porcelain { background: var(--porcelain); border-color: var(--line); box-shadow: none; }
.mrd-card--tile {
  display: block; text-align: left; border-radius: 1rem; padding: 1rem;
  transition: border-color .2s ease, transform .15s ease;
}
.mrd-card--tile:hover { border-color: var(--crimson); }
.mrd-card--tile:active { transform: scale(.98); }
.mrd-card__divider { border-top: 1px solid var(--line); margin-block: .875rem; }

.mrd-icon-box {
  width: 36px; height: 36px; border-radius: .75rem; flex: 0 0 auto;
  display: grid; place-items: center;
}
.mrd-icon-box--navy { background: var(--blue-50); color: var(--navy); }
.mrd-icon-box--crimson { background: var(--rose-50); color: var(--crimson); }
.mrd-icon-box svg { width: 20px; height: 20px; }

/* ------------------------------------- 9. VIRTUAL RESERVE ACCOUNT CARDS */
.mrd-acct {
  border-radius: 24px; padding: 1.25rem; position: relative; overflow: hidden;
  transition: background .3s ease, box-shadow .3s ease, color .3s ease;
}
.mrd-acct--classic {
  background:
    radial-gradient(circle at 92% 14%, rgba(227,24,55,.12) 0%, transparent 48%),
    linear-gradient(135deg, #FFFFFF 0%, #F1F5FA 58%, #E4ECF7 100%);
  color: var(--navy); border: 1px solid rgba(1,33,105,.14);
  box-shadow: 0 24px 48px -22px rgba(1,33,105,.26);
}
.mrd-acct--premier {
  background:
    radial-gradient(circle at 86% 18%, rgba(227,24,55,.34) 0%, transparent 48%),
    radial-gradient(circle at 10% 88%, rgba(30,86,198,.35) 0%, transparent 50%),
    linear-gradient(135deg, var(--navy-light) 0%, var(--navy) 54%, #00133D 100%);
  color: #fff; border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 26px 52px -20px rgba(1,33,105,.55);
}
.mrd-acct--sovereign {
  background:
    radial-gradient(circle at 18% 12%, rgba(1,33,105,.45) 0%, transparent 52%),
    linear-gradient(135deg, var(--crimson) 0%, var(--crimson-dark) 52%, #6E0718 100%);
  color: #fff; border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 26px 52px -20px rgba(227,24,55,.48);
}
.mrd-shine { position: relative; overflow: hidden; }
.mrd-shine::after {
  content: ''; position: absolute; inset: 0; width: 44%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  transform: translateX(-220%) skewX(-24deg);
  animation: mrdGloss 5.8s cubic-bezier(.4,0,.2,1) infinite; pointer-events: none;
}
@keyframes mrdGloss {
  0%, 60% { transform: translateX(-220%) skewX(-24deg); }
  100% { transform: translateX(380%) skewX(-24deg); }
}
.mrd-acct__eyebrow {
  display: block; font-family: var(--mono); font-size: 9px; letter-spacing: .22em;
  text-transform: uppercase; opacity: .8;
}
.mrd-acct__rate { font-family: var(--serif); font-size: 32px; line-height: 1; margin-top: .375rem; }
.mrd-acct__rate small { font-family: var(--sans); font-size: 12px; font-weight: 600; opacity: .8; }
.mrd-acct__emblem { width: 48px; height: 32px; flex: 0 0 auto; }
.mrd-acct__chip { width: 36px; height: 28px; opacity: .9; flex: 0 0 auto; }
.mrd-acct__label {
  display: block; font-family: var(--mono); font-size: 8.5px; opacity: .7;
  text-transform: uppercase; letter-spacing: .1em;
}
.mrd-acct__no { font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .16em; }
.mrd-acct__foot {
  margin-top: 1.25rem; padding-top: .875rem; border-top: 1px solid currentColor;
  border-top-color: color-mix(in srgb, currentColor 15%, transparent);
  display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: 11px;
}
.mrd-acct__benefit { font-weight: 500; opacity: .9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrd-acct__pick { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; flex: 0 0 auto; }

/* ------------------------------------------------- 10. POLICY / STAT BAR */
.mrd-policy { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; padding-top: .5rem; border-top: 1px solid var(--line); }
.mrd-policy > div { text-align: center; padding-block: .5rem; }
.mrd-policy > div + div { border-left: 1px solid var(--line); }
.mrd-policy > div:last-child { border-right: 0; }
.mrd-policy span {
  display: block; font-family: var(--mono); font-size: 9px; font-weight: 700;
  text-transform: uppercase; color: var(--muted); letter-spacing: .06em;
}
.mrd-policy strong { font-family: var(--mono); font-size: 14px; font-weight: 800; color: var(--navy); }
.mrd-policy strong.is-crimson { color: var(--crimson); }

/* ------------------------------------------------------- 11. FORM FIELDS */
.mrd-field { display: block; }
.mrd-label {
  display: block; font-size: 12px; font-weight: 700; color: var(--navy); margin-bottom: .375rem;
}
.mrd-label .req { color: var(--crimson); }
.mrd-input-wrap {
  display: flex; align-items: center; border-radius: .75rem; overflow: hidden;
  background: var(--porcelain); border: 1.5px solid rgba(1,33,105,.12);
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
  position: relative;
}
.mrd-input-wrap:focus-within {
  background: #fff; border-color: var(--navy); box-shadow: 0 0 0 3.5px rgba(1,33,105,.09);
}
.mrd-input-wrap.is-error { border-color: var(--crimson); }
.mrd-input {
  flex: 1 1 auto; width: 100%; min-width: 0; background: transparent;
  padding: .875rem .875rem; font-size: 14px; font-weight: 600; color: var(--ink);
}
.mrd-input::placeholder { color: #94A3B8; font-weight: 500; }
.mrd-input--mono { font-family: var(--mono); }
.mrd-input--code {
  font-family: var(--mono); font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
}
.mrd-input--code::placeholder { font-family: var(--sans); letter-spacing: normal; font-weight: 500; text-transform: none; }
.mrd-input--pad-r { padding-right: 2.75rem; }
.mrd-input--sm { padding-block: .625rem; font-size: 12px; }
.mrd-prefix {
  flex: 0 0 auto; padding-left: .875rem; font-family: var(--mono);
  font-size: 12px; font-weight: 700; color: var(--muted);
}
.mrd-select {
  flex: 1 1 auto; width: 100%; padding: .875rem 2rem .875rem .875rem;
  font-size: 12px; font-weight: 700; color: var(--ink); cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A6B84' stroke-width='2.4' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .75rem center; background-size: 14px;
}
.mrd-select--cc {
  flex: 0 0 auto; width: auto; background-color: var(--ice);
  border-right: 1px solid var(--line); font-family: var(--mono);
  padding: .875rem 1.75rem .875rem .75rem; color: var(--navy); font-size: 12px;
}
.mrd-eye {
  position: absolute; right: .625rem; padding: .375rem; color: #94A3B8;
  display: grid; place-items: center;
}
.mrd-eye:hover { color: var(--navy); }
.mrd-eye svg { width: 17px; height: 17px; }
.mrd-field-note { display: block; font-size: 11px; color: var(--muted); margin-top: .375rem; }
.mrd-field-badge {
  position: absolute; right: .75rem; font-family: var(--mono); font-size: 10px; font-weight: 700;
}
.mrd-check { display: flex; align-items: flex-start; gap: .625rem; cursor: pointer; user-select: none; }
.mrd-check input[type=checkbox] {
  margin-top: .125rem; width: 16px; height: 16px; flex: 0 0 auto;
  accent-color: var(--navy); -webkit-appearance: auto; appearance: auto; cursor: pointer;
}
.mrd-check span { font-size: 11px; line-height: 1.6; color: var(--muted); }
.mrd-check b, .mrd-check a { color: var(--navy); font-weight: 700; }
.mrd-check a:hover { text-decoration: underline; }
.mrd-honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.mrd-captcha { display: flex; align-items: stretch; gap: .5rem; }
.mrd-captcha > .mrd-input-wrap { flex: 1 1 auto; }
.mrd-captcha__box {
  display: flex; align-items: center; gap: .125rem; flex: 0 0 auto; padding: .25rem;
  border-radius: .75rem; background: var(--porcelain); border: 1px solid rgba(1,33,105,.15);
}
.mrd-captcha__box img { width: 114px; height: 44px; border-radius: .5rem; cursor: pointer; object-fit: cover; }
.mrd-captcha__reload { padding: .375rem; color: var(--navy); display: grid; place-items: center; }
.mrd-captcha__reload:hover { color: var(--crimson); }
.mrd-captcha__reload svg { width: 17px; height: 17px; }

.mrd-strength { display: flex; align-items: center; gap: .5rem; margin-top: .375rem; }
.mrd-strength__track { flex: 1 1 auto; height: 4px; border-radius: 999px; background: #E2E8F0; overflow: hidden; }
.mrd-strength__bar { height: 100%; width: 0; background: var(--navy); transition: width .3s ease, background-color .3s ease; }
.mrd-strength__bar.is-weak { background: var(--crimson); }
.mrd-strength__bar.is-mid { background: #D97706; }
.mrd-strength__bar.is-strong { background: var(--emerald); }
.mrd-strength__label { font-family: var(--mono); font-size: 9px; font-weight: 700; color: #94A3B8; }

/* --------------------------------------------- 12. SLIDER (INTEREST SIM) */
input[type=range].mrd-slider {
  -webkit-appearance: none; appearance: none; width: 100%; height: 5px;
  border-radius: 999px; background: linear-gradient(90deg, var(--navy) 0%, var(--crimson) 100%);
  outline: none; cursor: pointer;
}
input[type=range].mrd-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 999px;
  background: #fff; border: 4px solid var(--navy); box-shadow: 0 4px 12px rgba(1,33,105,.28);
  cursor: pointer; transition: transform .15s ease, border-color .15s ease;
}
input[type=range].mrd-slider::-webkit-slider-thumb:active { transform: scale(1.14); border-color: var(--crimson); }
input[type=range].mrd-slider::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 999px; background: #fff;
  border: 4px solid var(--navy); box-shadow: 0 4px 12px rgba(1,33,105,.28); cursor: pointer;
}
.mrd-slider-scale { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 9.5px; color: rgba(147,197,253,.8); }
.mrd-sim-panel {
  border-radius: 1rem; background: rgba(0,21,68,.8); border: 1px solid rgba(255,255,255,.1);
  padding: .875rem;
}
.mrd-sim-panel > * + * { margin-top: .75rem; }
.mrd-sim-canvas { width: 100%; height: 144px; }
.mrd-sim-foot { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; padding-top: .5rem; border-top: 1px solid rgba(255,255,255,.1); }
.mrd-sim-foot span { display: block; font-family: var(--mono); font-size: 9px; color: #93C5FD; text-transform: uppercase; }
.mrd-sim-foot strong { display: block; font-family: var(--mono); font-size: 14px; font-weight: 800; margin-top: .125rem; }

/* ----------------------------------------------------------- 13. ACCORDION */
.mrd-faq { border-top: 1px solid rgba(203,213,225,.8); border-bottom: 1px solid rgba(203,213,225,.8); }
.mrd-faq__item { padding-block: .875rem; }
.mrd-faq__item + .mrd-faq__item { border-top: 1px solid rgba(203,213,225,.8); }
.mrd-faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .75rem; text-align: left; }
.mrd-faq__q > span:first-child { font-size: 13px; font-weight: 700; color: var(--navy); }
.mrd-faq__sign {
  width: 24px; height: 24px; flex: 0 0 auto; border-radius: 999px; background: var(--porcelain);
  color: var(--navy); font-family: var(--mono); font-size: 12px; font-weight: 700;
  display: grid; place-items: center;
}
.mrd-faq__item.is-open .mrd-faq__sign { color: var(--crimson); }
.mrd-faq__a { font-size: 12px; color: var(--muted); line-height: 1.7; margin-top: .5rem; padding-right: 1.25rem; }
.mrd-faq__a strong { color: var(--navy); }

/* ------------------------------------------------- 14. MEMBER APP HEADER */
.mrd-app { padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px)); background: var(--porcelain); min-height: 100dvh; display: flex; flex-direction: column; }
.mrd-apphead {
  position: sticky; top: 0; z-index: 30;
  background: rgba(246,248,251,.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(1,33,105,.05);
}
.mrd-apphead__in {
  max-width: var(--shell); margin-inline: auto; padding: .75rem 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: .625rem;
}
.mrd-avatar {
  width: 40px; height: 40px; flex: 0 0 auto; border-radius: 999px; background: #fff;
  border: 1px solid rgba(1,33,105,.12); box-shadow: 0 1px 2px rgba(1,33,105,.06);
  display: grid; place-items: center; overflow: hidden;
}
.mrd-avatar img, .mrd-avatar svg { width: 26px; height: 26px; object-fit: contain; }
.mrd-apphead__name { font-size: 15px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.mrd-apphead__meta { display: flex; align-items: center; gap: .375rem; margin-top: .125rem; }
.mrd-apphead__meta small { font-size: 11px; font-weight: 500; color: var(--muted); }
.mrd-apphead__meta .mrd-acctno { font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--navy); }
.mrd-iconbtn {
  position: relative; width: 36px; height: 36px; flex: 0 0 auto; border-radius: 999px;
  background: #fff; border: 1px solid rgba(1,33,105,.10); box-shadow: 0 1px 2px rgba(1,33,105,.06);
  display: grid; place-items: center; color: var(--navy); transition: border-color .2s ease, color .2s ease;
}
.mrd-iconbtn:hover { border-color: var(--crimson); color: var(--crimson); }
.mrd-iconbtn svg { width: 18px; height: 18px; }
.mrd-iconbtn--plain { background: transparent; border: 0; box-shadow: none; width: 28px; height: 28px; color: var(--muted); }
.mrd-iconbtn--plain:hover { color: var(--crimson); }
.mrd-iconbtn--plain svg { width: 15px; height: 15px; }
.mrd-dot-badge {
  position: absolute; top: -2px; right: -2px; min-width: 17px; height: 17px; padding-inline: 4px;
  border-radius: 999px; background: var(--crimson); color: #fff;
  font-family: var(--mono); font-size: 9px; font-weight: 800;
  display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.mrd-page-title { font-size: 15px; font-weight: 800; color: var(--ink); }

/* --------------------------------------------------- 15. BALANCE CARD */
.mrd-balance {
  position: relative; overflow: hidden; border-radius: 22px; padding: 1.25rem; color: #fff;
  background:
    radial-gradient(circle at 92% 16%, rgba(227,24,55,.42) 0%, transparent 46%),
    radial-gradient(circle at 8% 92%, rgba(37,99,235,.28) 0%, transparent 48%),
    linear-gradient(135deg, var(--navy-light) 0%, var(--navy) 52%, #001442 100%);
  box-shadow: 0 18px 36px -14px rgba(1,33,105,.48);
}
.mrd-balance__crest { position: absolute; top: -1rem; right: -1rem; width: 144px; height: 144px; opacity: .09; pointer-events: none; }
.mrd-balance__body { position: relative; z-index: 1; }
.mrd-balance__label { font-size: 13px; font-weight: 500; color: #DBEAFE; }
.mrd-balance__big { display: flex; align-items: baseline; gap: .375rem; margin-top: .375rem; }
.mrd-balance__big span { font-size: 14px; font-weight: 700; color: #DBEAFE; }
.mrd-balance__big strong { font-family: var(--mono); font-size: 29px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.mrd-balance__hr { height: 1px; width: 100%; background: rgba(255,255,255,.15); margin-block: 1rem; }
.mrd-balance__split { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.mrd-balance__split a, .mrd-balance__split > div { text-align: left; }
.mrd-balance__k { display: flex; align-items: center; gap: .25rem; font-size: 12px; font-weight: 600; color: #DBEAFE; }
.mrd-balance__k svg { width: 12px; height: 12px; opacity: .8; }
.mrd-balance__v { font-family: var(--mono); font-size: 15px; font-weight: 800; margin-top: .25rem; }
.mrd-balance__hint { font-size: 10.5px; color: rgba(191,219,254,.9); margin-top: .125rem; }
.mrd-balance__pill {
  padding: .125rem .5rem; border-radius: 999px; background: #fff; color: var(--crimson);
  font-size: 9.5px; font-weight: 800; transition: transform .15s ease;
}
.mrd-balance__pill:active { transform: scale(.95); }
.mrd-pill-glass {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .375rem .625rem .375rem .875rem; border-radius: 999px;
  background: rgba(255,255,255,.15); color: #fff; font-size: 11.5px; font-weight: 700;
  transition: background-color .2s ease;
}
.mrd-pill-glass:hover { background: rgba(255,255,255,.25); }
.mrd-pill-glass svg { width: 14px; height: 14px; }
.is-masked { filter: blur(7px); user-select: none; }

/* --------------------------------------------------- 16. QUICK ICON GRID */
.mrd-quick { background: #fff; border: 1px solid rgba(1,33,105,.08); border-radius: 22px; padding: 1rem .5rem; box-shadow: 0 1px 2px rgba(1,33,105,.04); }
.mrd-quick__grid { display: grid; grid-template-columns: repeat(4, 1fr); row-gap: 1rem; column-gap: .25rem; }
.mrd-quick__item {
  position: relative; display: flex; flex-direction: column; align-items: center;
  text-align: center; transition: transform .15s ease;
}
.mrd-quick__item:active { transform: scale(.95); }
.mrd-quick__ico {
  width: 40px; height: 40px; border-radius: 1rem; display: grid; place-items: center;
  transition: background-color .2s ease, color .2s ease;
}
.mrd-quick__ico svg { width: 20px; height: 20px; }
.mrd-quick__ico--navy { background: var(--blue-50); color: var(--navy); }
.mrd-quick__item:hover .mrd-quick__ico--navy { background: var(--navy); color: #fff; }
.mrd-quick__ico--crimson { background: var(--rose-50); color: var(--crimson); }
.mrd-quick__item:hover .mrd-quick__ico--crimson { background: var(--crimson); color: #fff; }
.mrd-quick__txt { font-size: 11px; font-weight: 600; color: var(--ink); margin-top: .375rem; line-height: 1.2; }
.mrd-quick__dot { position: absolute; top: 0; right: .625rem; width: 8px; height: 8px; border-radius: 999px; background: #10B981; }
.mrd-quick__num {
  position: absolute; top: -2px; right: .25rem; padding: 0 5px; border-radius: 999px;
  background: var(--navy); color: #fff; font-family: var(--mono); font-size: 8px; font-weight: 700; line-height: 1.5;
}

/* ------------------------------------------------------ 17. FLASH DEALS */
.mrd-flash {
  border-radius: 22px; padding: 1rem; overflow: hidden;
  background: linear-gradient(180deg, #FFF1F3 0%, #FFF7F8 58%, #FFFFFF 100%);
  border: 1px solid rgba(227,24,55,.14);
}
.mrd-flash > * + * { margin-top: .875rem; }
.mrd-flash__title { font-size: 14px; font-weight: 800; font-style: italic; color: var(--navy); }
.mrd-flash__icon { width: 20px; height: 20px; color: var(--crimson); flex: 0 0 auto; }
.mrd-count { display: flex; align-items: center; gap: .25rem; font-family: var(--mono); }
.mrd-count > div { display: flex; flex-direction: column; align-items: center; }
.mrd-count b {
  padding: .25rem .375rem; border-radius: .375rem; background: var(--navy); color: #fff;
  font-size: 11px; font-weight: 800; line-height: 1;
}
.mrd-count b.is-sec { background: var(--crimson); }
.mrd-count small { font-size: 7px; font-weight: 700; color: var(--muted); margin-top: .125rem; }
.mrd-flash__intro { flex: 0 0 auto; width: 138px; padding-block: .5rem .25rem; display: flex; flex-direction: column; justify-content: space-between; }
.mrd-flash__intro h3 { font-size: 13px; font-weight: 800; color: var(--navy); }
.mrd-flash__intro p { font-size: 11.5px; color: var(--muted); line-height: 1.45; margin-top: .5rem; }
.mrd-flash__flame { width: 64px; height: 64px; color: rgba(227,24,55,.1); margin-top: .25rem; }
.mrd-deal {
  flex: 0 0 auto; width: 162px; background: #fff; border-radius: 1rem; padding: .875rem;
  border: 1px solid rgba(1,33,105,.08); box-shadow: 0 1px 2px rgba(1,33,105,.04);
  display: flex; flex-direction: column; justify-content: space-between; gap: .625rem;
}
.mrd-deal__tenor { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.mrd-deal__rate { font-size: 21px; font-weight: 800; color: var(--crimson); line-height: 1; margin-top: .25rem; }
.mrd-deal__was { font-size: 11px; color: var(--muted); text-decoration: line-through; margin-top: .25rem; }
.mrd-deal__quota { font-size: 11px; font-weight: 600; color: var(--crimson); margin-top: .25rem; }

/* ------------------------------------------------- 18. LISTS / LEDGER */
.mrd-list { border-top: 1px solid #F1F5F9; border-bottom: 1px solid #F1F5F9; }
.mrd-list__row {
  width: 100%; display: flex; align-items: center; gap: .75rem; padding-block: .75rem; text-align: left;
}
.mrd-list__row + .mrd-list__row { border-top: 1px solid #F1F5F9; }
.mrd-list__ico {
  width: 34px; height: 34px; flex: 0 0 auto; border-radius: .625rem; display: grid; place-items: center;
  background: var(--blue-50); color: var(--navy);
}
.mrd-list__ico.is-credit { background: #ECFDF5; color: var(--emerald); }
.mrd-list__ico.is-debit { background: var(--rose-50); color: var(--crimson); }
.mrd-list__ico svg { width: 17px; height: 17px; }
.mrd-list__main { flex: 1 1 auto; min-width: 0; }
.mrd-list__main b { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink); }
.mrd-list__main small { display: block; font-size: 10.5px; color: var(--muted); margin-top: .125rem; }
.mrd-list__end { flex: 0 0 auto; text-align: right; }
.mrd-list__end b { display: block; font-family: var(--mono); font-size: 12.5px; font-weight: 800; color: var(--ink); }
.mrd-list__end b.is-credit { color: var(--emerald); }
.mrd-list__end b.is-debit { color: var(--crimson); }
.mrd-list__end small { display: block; font-size: 10px; color: var(--muted); margin-top: .125rem; }
.mrd-menu__row {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding-block: .875rem; font-size: 12px; font-weight: 700; color: var(--navy); text-align: left;
}
.mrd-menu__row + .mrd-menu__row { border-top: 1px solid #F1F5F9; }
.mrd-menu__row.is-crimson { color: var(--crimson); }
.mrd-menu { border-top: 1px solid #F1F5F9; }

.mrd-empty { padding: 2rem 1rem; text-align: center; color: var(--muted); }
.mrd-empty svg { width: 36px; height: 36px; margin: 0 auto .75rem; color: #CBD5E1; }
.mrd-empty p { font-size: 12.5px; }

.mrd-quote {
  border-radius: .75rem; background: var(--porcelain); border: 1px solid rgba(1,33,105,.08);
  padding: .875rem; font-family: var(--mono); font-size: 11px;
}
.mrd-quote > div { display: flex; justify-content: space-between; gap: .75rem; }
.mrd-quote > div + div { margin-top: .375rem; }
.mrd-quote > div > span { color: var(--muted); }
.mrd-quote > div > strong { color: var(--ink); }
.mrd-quote .is-fee > span, .mrd-quote .is-fee > strong { color: var(--crimson); }
.mrd-quote .is-net { padding-top: .5rem; margin-top: .5rem; border-top: 1px solid #E2E8F0; font-size: 12px; }
.mrd-quote .is-net > span { font-weight: 700; color: var(--emerald); }
.mrd-quote .is-net > strong { color: var(--emerald); }

.mrd-notice {
  display: flex; align-items: flex-start; gap: .625rem; border-radius: .75rem; padding: .875rem;
  font-size: 12px; line-height: 1.6;
}
.mrd-notice svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: .0625rem; }
.mrd-notice--info { background: var(--blue-50); color: #10306B; }
.mrd-notice--ok { background: #ECFDF5; color: #065F46; }
.mrd-notice--warn { background: #FFFBEB; color: #92400E; }
.mrd-notice--error { background: var(--rose-50); color: #9F1239; }

/* ------------------------------------------------------- 19. BOTTOM DOCK */
.mrd-dock {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(1,33,105,.08);
  box-shadow: 0 -8px 24px -10px rgba(1,33,105,.12);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.mrd-dock__in {
  max-width: var(--shell); margin-inline: auto; padding: .375rem .5rem .625rem;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
}
.mrd-dock__item {
  display: flex; flex-direction: column; align-items: center; gap: .25rem;
  color: var(--muted); transition: color .2s ease;
}
.mrd-dock__item:hover { color: var(--navy); }
.mrd-dock__item.is-on { color: var(--crimson); }
.mrd-dock__item svg { width: 20px; height: 20px; }
.mrd-dock__item span { font-size: 10px; font-weight: 600; }
.mrd-dock__item.is-on span { font-weight: 700; }
.mrd-dock__center { display: flex; flex-direction: column; align-items: center; margin-top: -1.5rem; }
.mrd-dock__fab {
  width: 52px; height: 52px; border-radius: 999px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--crimson), var(--crimson-dark)); color: #fff;
  box-shadow: 0 10px 22px -6px rgba(227,24,55,.65); outline: 4px solid #fff;
  transition: transform .15s ease;
}
.mrd-dock__fab:active { transform: scale(.95); }
.mrd-dock__fab svg { width: 24px; height: 24px; }
.mrd-dock__center > span { font-size: 10px; font-weight: 700; color: var(--navy); margin-top: .25rem; }

/* -------------------------------------------------------- 20. PRODUCTS */
.mrd-product {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: 1rem;
  padding: 1rem; box-shadow: 0 1px 2px rgba(1,33,105,.04); text-align: left;
  transition: border-color .2s ease, transform .15s ease;
}
.mrd-product:hover { border-color: var(--crimson); }
.mrd-product:active { transform: scale(.99); }
.mrd-product__head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.mrd-product__name { font-size: 14px; font-weight: 800; color: var(--navy); }
.mrd-product__code { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: .125rem; }
.mrd-product__rate { font-family: var(--serif); font-size: 26px; line-height: 1; color: var(--crimson); }
.mrd-product__rate small { font-family: var(--sans); font-size: 11px; font-weight: 600; color: var(--muted); }
.mrd-product__meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: .875rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.mrd-product__meta span { display: block; font-family: var(--mono); font-size: 8.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mrd-product__meta strong { display: block; font-family: var(--mono); font-size: 12px; font-weight: 800; color: var(--navy); margin-top: .125rem; }
.mrd-product__img { width: 100%; aspect-ratio: 16/9; border-radius: .75rem; object-fit: cover; background: var(--porcelain); margin-bottom: .875rem; }
.mrd-progress { height: 5px; border-radius: 999px; background: #E2E8F0; overflow: hidden; margin-top: .5rem; }
.mrd-progress > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--navy), var(--crimson)); }

/* ------------------------------------------------- 21. CHECK-IN CALENDAR */
.mrd-checkin { display: grid; grid-template-columns: repeat(7, 1fr); gap: .375rem; }
.mrd-checkin__day {
  border-radius: .625rem; padding: .5rem .125rem; text-align: center;
  background: var(--porcelain); border: 1px solid var(--line);
}
.mrd-checkin__day small { display: block; font-family: var(--mono); font-size: 8.5px; font-weight: 700; color: var(--muted); }
.mrd-checkin__day b { display: block; font-size: 11px; font-weight: 800; color: var(--navy); margin-top: .25rem; }
.mrd-checkin__day.is-done { background: var(--navy); border-color: transparent; }
.mrd-checkin__day.is-done small, .mrd-checkin__day.is-done b { color: #fff; }
.mrd-checkin__day.is-today { border-color: var(--crimson); background: var(--rose-50); }
.mrd-checkin__day.is-today b { color: var(--crimson); }

/* ------------------------------------------------------ 22. TOAST / MODAL */
.mrd-toast-host {
  position: fixed; top: 4rem; left: 50%; transform: translateX(-50%); z-index: 60;
  width: 92%; max-width: 420px; pointer-events: none;
}
.mrd-toast {
  display: flex; align-items: center; gap: .75rem; border-radius: 1rem;
  background: rgba(1,33,105,.96); backdrop-filter: blur(18px); color: #fff;
  padding: .875rem 1rem; box-shadow: 0 20px 40px -16px rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.15);
  opacity: 0; transform: translateY(-10px); transition: opacity .3s ease, transform .3s ease;
}
.mrd-toast.is-on { opacity: 1; transform: none; }
.mrd-toast__ico {
  width: 28px; height: 28px; flex: 0 0 auto; border-radius: 999px; background: #2563EB;
  display: grid; place-items: center; font-family: var(--mono); font-size: 12px; font-weight: 800;
}
.mrd-toast.is-ok .mrd-toast__ico { background: var(--emerald); }
.mrd-toast.is-error .mrd-toast__ico { background: var(--crimson); }
.mrd-toast__body { flex: 1 1 auto; min-width: 0; }
.mrd-toast__body b { display: block; font-size: 12px; font-weight: 800; }
.mrd-toast__body small { display: block; font-size: 11px; color: #DBEAFE; margin-top: .125rem; }

.mrd-modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 1rem; }
.mrd-modal[hidden] { display: none; }
.mrd-modal__veil { position: absolute; inset: 0; background: rgba(1,21,51,.55); backdrop-filter: blur(3px); }
.mrd-modal__card {
  position: relative; width: 100%; max-width: 420px; background: #fff; border-radius: 24px;
  padding: 1.5rem; box-shadow: 0 30px 60px -20px rgba(1,33,105,.5);
  max-height: 86dvh; overflow-y: auto;
}
.mrd-modal__x {
  position: absolute; top: .875rem; right: .875rem; width: 30px; height: 30px; border-radius: 999px;
  background: var(--porcelain); color: var(--muted); display: grid; place-items: center; font-size: 16px;
}
.mrd-modal__x:hover { background: var(--crimson); color: #fff; }

.mrd-drawer { display: none; }
.mrd-drawer.is-open { display: block; }
.mrd-panel { display: none; }
.mrd-panel.is-on { display: block; }
.mrd-panel > * + * { margin-top: 1rem; }

/* ------------------------------------------------------------ 23. FOOTER */
.mrd-footer { background: var(--white); border-top: 1px solid var(--line); padding-block: 1.75rem 2.5rem; }
.mrd-footer__nav { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; margin-top: 1rem; }
.mrd-footer__nav a { font-size: 12px; font-weight: 600; color: var(--muted); }
.mrd-footer__nav a:hover { color: var(--crimson); }
.mrd-footer__legal { font-size: 10.5px; line-height: 1.7; color: var(--muted); margin-top: 1rem; }
.mrd-footer__meta { display: flex; align-items: center; justify-content: space-between; gap: .75rem; font-size: 11px; color: var(--muted); margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.mrd-footer__meta b { font-family: var(--mono); font-weight: 700; color: var(--navy); }

/* ------------------------------------------------------- 24. WIDE SCREEN */
@media (min-width: 900px) {
  :root { --shell: 60rem; }
  .mrd-wide { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.25rem; align-items: start; }
  .mrd-wide--even { grid-template-columns: 1fr 1fr; }
  .mrd-grid--tiles-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  h1.mrd-display { font-size: 46px; }
  h2.mrd-display { font-size: 32px; }
  .mrd-hide-wide { display: none; }
}
@media (max-width: 899px) { .mrd-only-wide { display: none; } }
@media (max-width: 380px) {
  .mrd-grid--4 { gap: .125rem; }
  .mrd-quick__txt { font-size: 10px; }
}

/* ------------------------------------------------- 25. STATE UTILITIES */
.mrd-locked { overflow: hidden; }
.is-busy { position: relative; color: transparent !important; }
.is-busy::after {
  content: ''; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 999px;
  animation: mrdSpin .7s linear infinite;
}
.mrd-btn--outline.is-busy::after, .mrd-btn--soft.is-busy::after { border-color: rgba(1,33,105,.25); border-top-color: var(--navy); }
@keyframes mrdSpin { to { transform: rotate(360deg); } }
[data-amount].is-on { background: var(--navy) !important; color: #fff !important; }
[data-amount].mrd-btn--soft-crimson.is-on { background: var(--crimson) !important; }

/* --------------------------------------------- 26. LANDING SPECIFICS */
.mrd-ribbon { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .75; pointer-events: none; }
.mrd-hero-body { position: relative; z-index: 1; }
.mrd-acct__mid { margin-top: 1.5rem; }
.mrd-sim-principal { font-size: 18px; color: #fff; }
.mrd-sim-head { font-family: var(--mono); font-size: 9.5px; }
.mrd-sim-head > span:first-child { color: #BFDBFE; }
.mrd-sim-head > span:last-child { color: #fff; font-weight: 700; font-size: 12px; }
.mrd-sim-daily { color: var(--emerald-light); }
.mrd-sim-total { color: #FDA4AF; }
.mrd-tile-head { margin-bottom: .625rem; }
.mrd-tile-tag { font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.mrd-tile-title { font-size: 13px; font-weight: 700; color: var(--navy); }
.mrd-card--tile .mrd-note { margin-top: .125rem; line-height: 1.45; }
.mrd-cta-title { font-size: 13px; font-weight: 800; color: var(--navy); }

/* ------------------------------------------------- 27. AUTH SPECIFICS */
.mrd-auth { display: flex; flex-direction: column; justify-content: space-between; flex: 1 1 auto; width: 100%; }
.mrd-auth-head { padding-inline: .25rem; }
h1.mrd-auth-title { font-size: 30px; line-height: 1.18; margin-top: .125rem; }
.mrd-auth-head .mrd-note { margin-top: .25rem; font-size: 12px; }
.mrd-auth-foot { padding-top: 1.75rem; font-size: 12px; color: var(--muted); }
.mrd-auth-link { font-family: var(--mono); font-size: 11.5px; font-weight: 700; color: var(--crimson); }
.mrd-auth-link:hover { text-decoration: underline; }
.mrd-label-row { align-items: center; margin-bottom: .375rem; }
.mrd-label-row .mrd-label { margin-bottom: 0; }
.mrd-req-tag { font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.mrd-grid--pw { grid-template-columns: 1fr; gap: .875rem; }
.mrd-bank-block { border-style: dashed; }
.mrd-bank-ico { width: 20px; height: 20px; color: var(--navy); flex: 0 0 auto; }
.mrd-bank-title { font-size: 13px; font-weight: 800; color: var(--navy); }
.mrd-logout-ico { width: 56px; height: 56px; margin: 0 auto; border-radius: 1.25rem; }
.mrd-logout-ico svg { width: 26px; height: 26px; }
.mrd-logout-actions { width: 100%; }
@media (min-width: 420px) { .mrd-grid--pw { grid-template-columns: 1fr 1fr; } }

/* --------------------------------------------- 28. BERANDA SPECIFICS */
.mrd-notice--link { text-decoration: none; }
.mrd-notice--link > svg:last-child { margin-top: .125rem; opacity: .7; }
.mrd-notice b { display: block; }
.mrd-mini { text-align: center; padding: .75rem .5rem; }
.mrd-mini span {
  display: block; font-family: var(--mono); font-size: 8.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.mrd-mini strong { display: block; font-family: var(--mono); font-size: 12.5px; font-weight: 800; color: var(--navy); margin-top: .25rem; }
.mrd-iconbtn--glass {
  width: 26px; height: 26px; background: transparent; border: 0; box-shadow: none; color: #DBEAFE;
}
.mrd-iconbtn--glass:hover { background: rgba(255,255,255,.12); color: #fff; border-color: transparent; }
.mrd-iconbtn--glass svg { width: 15px; height: 15px; }
.mrd-balance__row { flex-wrap: wrap; gap: .375rem; margin-top: .25rem; }
.mrd-policy--flat { border-top: 0; padding-top: 0; }
.mrd-modal__hero { width: 100%; border-radius: 1rem; margin-bottom: .25rem; object-fit: cover; }
.mrd-feature-list > li { display: flex; align-items: flex-start; gap: .5rem; font-size: 12px; color: var(--muted); }
.mrd-feature-list > li + li { margin-top: .5rem; }
.mrd-feature-list svg { width: 16px; height: 16px; color: var(--emerald); flex: 0 0 auto; margin-top: .0625rem; }

/* --------------------------------------------- 29. PRODUCT / MISC EXTRA */
.mrd-product__stock { margin-top: .75rem; }
.mrd-stock-num { font-size: 10.5px; font-weight: 700; }
.mrd-progress-fill { width: 0; }
.mrd-minline { font-size: 10px; font-weight: 700; margin-top: .125rem; letter-spacing: .04em; text-transform: uppercase; }
.mrd-inline-alert { margin-top: .5rem; font-size: 11.5px; }
.mrd-field-link { color: var(--crimson); font-weight: 700; }
.mrd-field-link:hover { text-decoration: underline; }
.mrd-secure { justify-content: center; gap: .375rem; }
.mrd-secure svg { width: 15px; height: 15px; }
.mrd-balance--compact { padding: 1rem 1.25rem; border-radius: 18px; }
.mrd-balance--compact .mrd-balance__big strong { font-size: 24px; }
.mrd-method {
  display: flex; align-items: center; gap: .75rem; padding: .875rem;
  border-radius: .875rem; background: var(--porcelain); border: 1.5px solid var(--navy);
}
.mrd-method__radio {
  width: 18px; height: 18px; flex: 0 0 auto; border-radius: 999px;
  border: 5px solid var(--navy); background: #fff;
}
.mrd-method__txt { min-width: 0; }
.mrd-method__txt b { display: block; font-size: 13px; font-weight: 800; color: var(--navy); }
.mrd-method__txt small { display: block; font-size: 10.5px; color: var(--muted); margin-top: .125rem; }
.mrd-amount { width: 100%; }
.mrd-dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; padding-block: .625rem; }
.mrd-dl > div + div { border-top: 1px solid #F1F5F9; }
.mrd-dl dt { font-size: 12px; color: var(--muted); }
.mrd-dl dd { font-family: var(--mono); font-size: 12.5px; font-weight: 700; color: var(--navy); text-align: right; }
.mrd-fold { border-radius: .875rem; background: var(--porcelain); border: 1px solid var(--line); padding: .875rem 1rem; }
.mrd-fold + .mrd-fold { margin-top: .5rem; }
.mrd-fold > summary { font-size: 12.5px; font-weight: 800; color: var(--navy); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: .5rem; }
.mrd-fold > summary::-webkit-details-marker { display: none; }
.mrd-fold > summary::after { content: '+'; font-family: var(--mono); color: var(--crimson); font-weight: 700; }
.mrd-fold[open] > summary::after { content: '\2212'; }
.mrd-fold__body { margin-top: .75rem; font-size: 12px; line-height: 1.7; color: var(--muted); }
.mrd-fold__body p + p { margin-top: .5rem; }
.mrd-hero-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 18px; background: var(--porcelain); }
.mrd-sticky-cta {
  position: sticky; bottom: calc(var(--dock-h) + .5rem); z-index: 20;
  background: rgba(246,248,251,.92); backdrop-filter: blur(10px);
  padding: .75rem 0; border-radius: 1rem;
}
.mrd-tabs { display: flex; gap: .375rem; overflow-x: auto; }
.mrd-tab {
  flex: 0 0 auto; padding: .5rem .875rem; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  background: #fff; border: 1px solid var(--line); color: var(--muted);
}
.mrd-tab.is-on { background: var(--navy); border-color: transparent; color: #fff; }
.mrd-tab > span { font-family: var(--mono); font-size: 9.5px; margin-left: .25rem; opacity: .75; }
.mrd-product--flash { border-color: rgba(227,24,55,.25); background: linear-gradient(180deg, #FFF7F8 0%, #fff 55%); }
.mrd-flash-name { margin-top: .375rem; }
.mrd-gift { gap: .375rem; margin-top: .75rem; }
.mrd-gift svg { width: 15px; height: 15px; color: var(--crimson); }
.mrd-gift strong { color: var(--navy); }
.mrd-cta-gap { margin-top: .5rem; }

/* ------------------------------------------- 30. PROFILE / MENU EXTRA */
h2.mrd-profile-name { font-size: 24px; margin-top: .375rem; }
.mrd-profile-phone { font-size: 11.5px; margin-top: .25rem; }
.mrd-profile-meta { padding-block: .5rem; border-top: 1px solid #F1F5F9; }
.mrd-refcode { font-size: 16px; font-weight: 800; letter-spacing: .18em; margin-top: .25rem; }
.mrd-menu__txt { min-width: 0; }
.mrd-menu__txt b { display: block; font-size: 12.5px; font-weight: 700; color: var(--navy); }
.mrd-menu__txt small { display: block; font-size: 10.5px; font-weight: 500; color: var(--muted); margin-top: .125rem; }
.mrd-menu__row .mrd-icon-box { width: 32px; height: 32px; border-radius: .625rem; }
.mrd-menu__row .mrd-icon-box svg { width: 17px; height: 17px; }
.mrd-menu__row.is-off { opacity: .45; }
.mrd-menu__row > .mrd-flow:last-child svg { width: 16px; height: 16px; color: var(--muted); }
.mrd-mini strong + span { margin-top: .25rem; }

/* ------------------------------------------------------- 31. LIVE CHAT */
.mrd-chat { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.mrd-chat__head {
  display: flex; align-items: center; gap: .75rem; padding: .875rem 1rem;
  border-bottom: 1px solid var(--line); background: var(--porcelain);
}
.mrd-chat__head b { display: block; font-size: 13px; font-weight: 800; color: var(--navy); }
.mrd-chat__head small { display: flex; align-items: center; gap: .375rem; font-size: 10.5px; color: var(--muted); margin-top: .125rem; }
.mrd-chat__body { padding: 1rem; display: flex; flex-direction: column; gap: .625rem; max-height: 58dvh; overflow-y: auto; }
.mrd-chat__empty { text-align: center; color: var(--muted); padding: 1.5rem .5rem; }
.mrd-chat__empty svg { width: 32px; height: 32px; margin: 0 auto .625rem; color: #CBD5E1; }
.mrd-chat__empty p { font-size: 12px; line-height: 1.6; }
.mrd-msg { max-width: 82%; border-radius: 1rem; padding: .625rem .875rem; }
.mrd-msg p { font-size: 12.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.mrd-msg time { display: block; font-family: var(--mono); font-size: 9px; margin-top: .375rem; opacity: .75; }
.mrd-msg.is-mine { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: .25rem; }
.mrd-msg.is-cs { align-self: flex-start; background: var(--porcelain); color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: .25rem; }
.mrd-chat__closed { text-align: center; padding: .75rem; border-radius: .75rem; background: var(--rose-50); }
.mrd-chat__closed b { display: block; font-size: 12px; color: var(--crimson); }
.mrd-chat__closed span { display: block; font-size: 11px; color: var(--muted); margin-top: .125rem; }
.mrd-chat__form {
  display: flex; align-items: flex-end; gap: .5rem; padding: .75rem 1rem 1rem;
  border-top: 1px solid var(--line);
}
.mrd-chat__form textarea {
  flex: 1 1 auto; min-height: 42px; max-height: 120px; padding: .625rem .875rem;
  border-radius: .875rem; background: var(--porcelain); border: 1.5px solid rgba(1,33,105,.12);
  font-size: 12.5px; resize: none;
}
.mrd-chat__form textarea:focus { outline: none; background: #fff; border-color: var(--navy); }
.mrd-chat__form button {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 999px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--crimson), var(--crimson-dark)); color: #fff;
  box-shadow: 0 8px 18px -8px rgba(227,24,55,.6);
}
.mrd-chat__form button svg { width: 18px; height: 18px; }

/* Select2 disesuaikan dengan bidang Meridian */
.select2-container--default .select2-selection--single {
  height: auto; padding: .75rem .875rem; border-radius: .75rem;
  background: var(--porcelain); border: 1.5px solid rgba(1,33,105,.12);
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 0; font-size: 12px; font-weight: 700; color: var(--ink); line-height: 1.4;
}
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 100%; right: .5rem; }
.select2-dropdown { border-radius: .875rem; border-color: var(--line-strong); overflow: hidden; }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--navy); }
.select2-results__group { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--crimson); }

/* ------------------------------------------------ 32. RECEIPT / FOLD ROW */
.mrd-list__row--fold { display: block; padding-block: 0; }
.mrd-list__row--fold > summary {
  display: flex; align-items: center; gap: .75rem; padding-block: .75rem;
  cursor: pointer; list-style: none;
}
.mrd-list__row--fold > summary::-webkit-details-marker { display: none; }
.mrd-list__row--fold[open] > summary { border-bottom: 1px dashed var(--line); }
.mrd-receipt { padding: .25rem 0 .875rem; }
.mrd-empty--filter { font-size: 12.5px; color: var(--muted); text-align: center; padding: 1.5rem .5rem; }
.mrd-textarea { min-height: 84px; line-height: 1.6; font-weight: 500; font-size: 13px; }
.mrd-input--file { padding: .75rem .875rem; font-size: 12px; font-weight: 600; }
.mrd-input[readonly] { color: var(--muted); }
.mrd-dd-copy { justify-content: flex-end; }

/* ------------------------------------------------------- 33. LUCKY SPIN */
.mrd-spin { display: flex; flex-direction: column; gap: 1rem; }
.mrd-spin__stage { position: relative; display: flex; flex-direction: column; align-items: center; padding-top: .75rem; }
.mrd-spin__pointer {
  width: 0; height: 0; margin-bottom: -.5rem; z-index: 2;
  border-left: 10px solid transparent; border-right: 10px solid transparent;
  border-top: 18px solid var(--crimson);
  filter: drop-shadow(0 2px 3px rgba(1,33,105,.3));
}
.mrd-spin__wheel {
  width: 100%; max-width: 268px; height: auto; border-radius: 999px;
  box-shadow: 0 18px 36px -16px rgba(1,33,105,.45);
}
.mrd-spin__amt { font-family: var(--mono); font-size: 15px; font-weight: 800; }
.mrd-spin__cur { font-family: var(--mono); font-size: 7.5px; font-weight: 700; letter-spacing: .14em; }
.mrd-spin__hub {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); margin-top: .3rem;
  width: 52px; height: 52px; border-radius: 999px; background: #fff; display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(1,33,105,.25); border: 2px solid var(--navy);
}
.mrd-spin__hub img { width: 28px; height: 28px; object-fit: contain; }
.mrd-spin__count { display: block; font-size: 17px; color: var(--navy); margin-top: .25rem; }
.mrd-invite-code {
  font-family: var(--mono); font-size: 26px; font-weight: 800; letter-spacing: .18em;
  margin-top: .375rem; color: #fff;
}
.mrd-post-title { font-size: 14px; font-weight: 800; color: var(--navy); line-height: 1.35; }
.mrd-post-meta { gap: .75rem; font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.mrd-post-meta > span { display: inline-flex; align-items: center; gap: .25rem; }
.mrd-post-meta svg { width: 13px; height: 13px; }
.mrd-article { font-size: 13px; line-height: 1.8; color: var(--ink); }
.mrd-list__row--stack { align-items: flex-start; }
.mrd-comment { font-size: 12.5px; line-height: 1.7; color: var(--ink); margin-top: .25rem; }

/* ------------------------------------ 34. OVERLAY SLIDESHOW BERANDA */
.mrd-modal__card--show { padding: 1rem; max-width: 460px; }
.mrd-show__head { padding: .25rem .25rem .75rem; }
.mrd-show__head .mrd-display { font-size: 22px; margin-top: .125rem; }

.mrd-show { position: relative; border-radius: 18px; overflow: hidden; background: var(--porcelain); }
.mrd-show__track { position: relative; width: 100%; }
.mrd-show__slide {
  position: relative; display: none; width: 100%;
  animation: mrdShowFade .35s ease;
}
.mrd-show__slide.is-on { display: block; }
.mrd-show__slide img {
  width: 100%; height: auto; max-height: 72dvh;
  object-fit: contain; display: block; margin-inline: auto;
}
@keyframes mrdShowFade { from { opacity: .25; } to { opacity: 1; } }
.mrd-show__caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.75rem .875rem .75rem;
  background: linear-gradient(180deg, transparent, rgba(1,21,51,.82));
  color: #fff; font-size: 12.5px; font-weight: 700; line-height: 1.45;
}
.mrd-show__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center;
  background: rgba(255,255,255,.9); color: var(--navy);
  box-shadow: 0 4px 12px rgba(1,33,105,.25); transition: background-color .2s ease, color .2s ease;
}
.mrd-show__nav:hover { background: var(--navy); color: #fff; }
.mrd-show__nav svg { width: 17px; height: 17px; }
.mrd-show__nav.is-prev { left: .5rem; }
.mrd-show__nav.is-next { right: .5rem; }
.mrd-show__dots {
  position: absolute; left: 0; right: 0; bottom: .625rem;
  display: flex; justify-content: center; gap: .375rem;
}
.mrd-show__dot {
  width: 7px; height: 7px; border-radius: 999px; background: rgba(255,255,255,.55);
  box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: width .2s ease, background-color .2s ease;
}
.mrd-show__dot.is-on { width: 20px; background: var(--crimson); }
.mrd-modal__card--show .mrd-btn { margin-top: .875rem; }
