:root {
  --navy: #0f172a;
  --navy-2: #15223b;
  --blue: #2563eb;
  --blue-2: #1d4ed8;
  --sky: #38bdf8;
  --ink: #101828;
  --muted: #667085;
  --muted-2: #98a2b3;
  --line: #e7ebf2;
  --line-strong: #d9e0eb;
  --surface: #ffffff;
  --canvas: #f5f7fb;
  --green: #15966a;
  --green-soft: #e7f7ef;
  --red: #d64545;
  --red-soft: #fff0f0;
  --amber: #b7791f;
  --amber-soft: #fff6df;
  --shadow: 0 8px 24px rgba(15, 23, 42, .055);
  --shadow-modal: 0 22px 70px rgba(15, 23, 42, .22);
  --radius: 18px;
  --radius-sm: 12px;
  --sidebar-width: 252px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; font-size: 14px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid rgba(56, 189, 248, .65); outline-offset: 2px; }
button:disabled { opacity: .48; cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { display: block; }
svg use { pointer-events: none; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 40; inset: 0 auto 0 0; width: var(--sidebar-width); display: flex; flex-direction: column; padding: 23px 15px 16px; background: var(--navy); color: #d6deed; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 11px; padding: 1px 11px 28px; }
.brand-mark { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 12px; color: #fff; font-size: 21px; font-weight: 800; letter-spacing: -1.5px; background: linear-gradient(145deg, #38bdf8, #2563eb 72%); box-shadow: 0 6px 18px rgba(37, 99, 235, .3); }
.brand-mark span { color: #d4f4ff; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.13; gap: 5px; }
.brand-copy strong { color: #fff; font-size: 17px; letter-spacing: -.35px; }
.brand-copy small { color: #7e9ac3; font-size: 9px; font-weight: 800; letter-spacing: 2.4px; }
.sidebar-label { padding: 0 12px 10px; color: #64748b; font-size: 9px; font-weight: 800; letter-spacing: 1.2px; }
.nav-list { display: flex; flex-direction: column; gap: 4px; }
.nav-link { position: relative; min-height: 43px; width: 100%; display: flex; align-items: center; gap: 12px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: #9baac1; text-align: left; font-size: 12.5px; font-weight: 600; transition: background .16s ease, color .16s ease; }
.nav-link > svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-link.active { background: linear-gradient(100deg, rgba(37,99,235,.27), rgba(37,99,235,.11)); color: #fff; box-shadow: inset 3px 0 #38bdf8; }
.nav-link.active > svg { color: #6dd3ff; }
.nav-dot { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: #38bdf8; }
.nav-count { margin-left: auto; padding: 2px 6px; border-radius: 6px; background: rgba(56,189,248,.16); color: #79d8ff; font-size: 10px; }
.nav-count.debt-count { padding: 4px 7px; border-radius: 999px; background: #dc2626; color: #fff; font-size: 8px; font-weight: 850; letter-spacing: .25px; box-shadow: 0 0 0 3px rgba(220,38,38,.12); animation: debt-badge-pulse 2s ease-in-out infinite; }
@keyframes debt-badge-pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(220,38,38,.1); } 50% { box-shadow: 0 0 0 5px rgba(220,38,38,.18); } }
.sidebar-bottom { margin-top: auto; padding-top: 25px; }
.fund-mini { margin: 0 4px 16px; padding: 13px; border: 1px solid rgba(148,163,184,.15); border-radius: 13px; background: rgba(255,255,255,.035); }
.fund-mini-top { display: flex; align-items: center; justify-content: space-between; }
.fund-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: #62c9ff; background: rgba(56,189,248,.13); }
.fund-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.status-dot { display: block; width: 6px; height: 6px; border-radius: 50%; background: #36ca8d; box-shadow: 0 0 0 4px rgba(54,202,141,.1); }
.fund-mini p { margin: 10px 0 1px; color: #8c9cb5; font-size: 11px; }
.fund-mini strong { display: block; color: #fff; font-size: 16px; letter-spacing: -.3px; }
.mini-progress { height: 4px; margin-top: 11px; border-radius: 9px; background: #29354a; overflow: hidden; }
.mini-progress span { display: block; height: 100%; border-radius: inherit; background: #38bdf8; }
.fund-mini small { display: block; margin-top: 7px; color: #71829d; font-size: 9px; }
.support-link { margin-bottom: 11px; }
.sidebar-user { display: flex; align-items: center; gap: 9px; border-top: 1px solid rgba(148,163,184,.13); padding: 16px 5px 0; }
.avatar, .top-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(145deg, #d9f4ff, #77c8f4); color: #0f427e; font-size: 11px; font-weight: 800; }
.user-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.user-copy strong { color: #e7edf8; font-size: 11px; font-weight: 650; }
.user-copy small { color: #71819a; font-size: 9px; }
.workspace { min-height: 100vh; margin-left: var(--sidebar-width); }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; min-height: 68px; padding: 0 35px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.93); backdrop-filter: blur(10px); }
.breadcrumbs { display: flex; align-items: center; gap: 9px; color: #8b95a7; font-size: 12px; }
.breadcrumbs svg { width: 13px; height: 13px; fill: none; stroke: #b4bdcc; stroke-width: 1.8; }
.breadcrumbs strong { color: #344054; font-weight: 700; }
.topbar-actions { display: flex; align-items: center; gap: 15px; }
.quick-search { display: flex; align-items: center; gap: 9px; width: min(260px, 25vw); height: 36px; padding: 0 10px; border: 1px solid #e3e8f0; border-radius: 9px; background: #fafbfc; color: #909aab; }
.quick-search svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.quick-search input { width: 100%; min-width: 0; border: 0; outline: none; background: transparent; color: var(--ink); font-size: 11px; }
.quick-search input::placeholder { color: #9aa4b3; }
.quick-search kbd { white-space: nowrap; border: 1px solid #e1e6ef; border-radius: 4px; padding: 1px 4px; color: #9aa4b3; font-family: inherit; font-size: 9px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #667085; transition: .15s ease; }
.icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { color: var(--blue); border-color: #c7d8fb; background: #f7faff; }
.icon-btn.subtle { width: 24px; height: 24px; border: 0; background: transparent; color: #7887a0; }
.icon-btn.subtle svg { width: 13px; height: 13px; }
.notification-btn span { position: absolute; top: 7px; right: 7px; width: 5px; height: 5px; border-radius: 50%; background: #2563eb; box-shadow: 0 0 0 2px #fff; }
.top-avatar { width: 32px; height: 32px; border-radius: 10px; }
.mobile-menu { display: none; }
.main-content { max-width: 1540px; margin: 0 auto; padding: 31px 35px 22px; }
.page-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding: 24px 0 3px; color: #98a2b3; font-size: 10px; }
.demo-note { display: inline-flex; align-items: center; gap: 6px; }
.demo-note i { width: 6px; height: 6px; border-radius: 50%; background: #38bdf8; }
.footer-link { border: 0; margin-left: auto; padding: 3px 0; background: transparent; color: #7c8ba2; font-size: 10px; }
.footer-link:hover { color: var(--blue); }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 23px; }
.eyebrow { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: 1.1px; text-transform: uppercase; }
.eyebrow .eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: #38bdf8; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 7px; color: #101828; font-size: clamp(23px, 2.4vw, 30px); font-weight: 750; line-height: 1.2; letter-spacing: -1.05px; }
h2 { margin: 0; font-size: 16px; font-weight: 750; letter-spacing: -.35px; }
h3 { margin: 0; font-size: 13px; font-weight: 750; letter-spacing: -.15px; }
.subheading { margin: 0; color: var(--muted); font-size: 12px; }
.heading-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 39px; padding: 0 14px; border: 1px solid transparent; border-radius: 10px; font-size: 11px; font-weight: 750; transition: background .16s ease, border-color .16s ease, transform .16s ease; white-space: nowrap; }
.btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: translateY(1px); }
.btn-primary { color: #fff; border-color: var(--blue); background: var(--blue); box-shadow: 0 4px 10px rgba(37,99,235,.13); }
.btn-primary:hover { border-color: var(--blue-2); background: var(--blue-2); }
.btn-secondary { color: #344054; border-color: var(--line-strong); background: #fff; }
.btn-secondary:hover { color: var(--blue); border-color: #bdd0fa; background: #f9fbff; }
.btn-ghost { color: #5a6b85; border-color: transparent; background: transparent; }
.btn-ghost:hover { color: var(--blue); background: #f0f5ff; }
.btn-danger { color: var(--red); border-color: #f4c8c8; background: #fff; }
.btn-small { min-height: 32px; padding: 0 10px; border-radius: 8px; font-size: 10px; }
.card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.card-pad { padding: 20px; }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 17px; }
.card-title-wrap { min-width: 0; }
.card-header .muted { margin-top: 4px; }
.muted { color: var(--muted); }
.small { font-size: 10px; }
.tiny { font-size: 9px; }
.blue-link { display: inline-flex; align-items: center; gap: 4px; padding: 3px 0; border: 0; color: var(--blue); background: transparent; font-size: 10px; font-weight: 750; white-space: nowrap; }
.blue-link svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.blue-link:hover { color: var(--blue-2); }
.dashboard-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr); gap: 20px; margin-bottom: 17px; padding: 25px 27px; border-radius: 20px; overflow: hidden; color: #fff; background: linear-gradient(115deg, #0f172a 0%, #142f61 62%, #1d4ed8 100%); }
.dashboard-hero:after { content: ""; position: absolute; width: 270px; height: 270px; border: 1px solid rgba(125,211,252,.16); border-radius: 50%; right: 17%; top: -178px; box-shadow: 0 0 0 25px rgba(125,211,252,.035), 0 0 0 55px rgba(125,211,252,.025); pointer-events: none; }
.hero-copy { position: relative; z-index: 1; }
.hero-copy .eyebrow { color: #9cc9ff; }
.hero-copy h1 { max-width: 520px; color: #fff; margin-bottom: 9px; font-size: clamp(24px, 2.7vw, 31px); }
.hero-copy p { max-width: 480px; margin-bottom: 18px; color: #c5d5ec; font-size: 12px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.dashboard-hero .btn-primary { color: #12315d; border-color: #c5eaff; background: #dff5ff; box-shadow: none; }
.dashboard-hero .btn-primary:hover { background: #fff; }
.dashboard-hero .btn-secondary { color: #e5efff; border-color: rgba(226,238,255,.23); background: rgba(255,255,255,.07); }
.dashboard-hero .btn-secondary:hover { background: rgba(255,255,255,.13); }
.hero-side { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; min-height: 145px; padding: 10px 0 10px 23px; border-left: 1px solid rgba(219,234,254,.18); }
.hero-side-label { display: flex; align-items: center; gap: 7px; color: #bad1ef; font-size: 10px; }
.hero-side-label i { display: block; width: 6px; height: 6px; border-radius: 50%; background: #38bdf8; }
.hero-balance { margin: 6px 0 3px; font-size: clamp(25px, 3vw, 34px); font-weight: 800; letter-spacing: -1px; }
.hero-side-foot { color: #b7cae8; font-size: 10px; }
.hero-side-foot strong { color: #86efac; font-weight: 700; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 17px; }
.kpi-card { padding: 16px 17px 15px; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 13px; }
.kpi-label { color: #667085; font-size: 10px; font-weight: 650; }
.kpi-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: #2563eb; background: #edf4ff; }
.kpi-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.kpi-value { margin-bottom: 6px; color: #111827; font-size: clamp(18px, 1.8vw, 23px); font-weight: 800; letter-spacing: -.6px; white-space: nowrap; }
.kpi-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; color: #98a2b3; font-size: 9px; }
.positive { color: var(--green) !important; }
.negative { color: var(--red) !important; }
.kpi-foot .trend { display: inline-flex; align-items: center; gap: 3px; font-weight: 750; }
.trend svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr); gap: 17px; margin-bottom: 17px; }
.chart-summary { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 2px 0 12px; }
.chart-value { color: #111827; font-size: 24px; font-weight: 800; letter-spacing: -.7px; }
.chart-periods { display: flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid #edf0f5; border-radius: 9px; background: #f8fafd; }
.chart-periods button { border: 0; border-radius: 6px; padding: 5px 7px; color: #7f8a9d; background: transparent; font-size: 9px; }
.chart-periods button.active { color: #fff; background: var(--blue); }
.chart-wrap { width: 100%; min-height: 155px; }
.chart-wrap svg { width: 100%; height: 155px; overflow: visible; }
.chart-legend { display: flex; align-items: center; gap: 7px; color: #8d98aa; font-size: 9px; }
.chart-legend span { width: 17px; height: 3px; border-radius: 3px; background: #2563eb; }
.chart-xlabels { display: flex; justify-content: space-between; margin-top: 4px; color: #a1a9b7; font-size: 8px; }
.mini-company-list { display: flex; flex-direction: column; }
.mini-company { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #f0f2f6; }
.mini-company:first-child { padding-top: 0; }
.mini-company:last-child { padding-bottom: 0; border-bottom: 0; }
.company-mark { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: -.3px; }
.mark-blue { background: linear-gradient(145deg, #4f8fff, #1d4ed8); }
.mark-violet { background: linear-gradient(145deg, #a78bfa, #6d28d9); }
.mark-teal { background: linear-gradient(145deg, #2dd4bf, #0f766e); }
.mark-orange { background: linear-gradient(145deg, #fdba74, #ea580c); }
.mark-slate { background: linear-gradient(145deg, #94a3b8, #475569); }
.mark-pink { background: linear-gradient(145deg, #f9a8d4, #be185d); }
.mini-company-copy { min-width: 0; flex: 1; }
.mini-company-copy strong { display: block; overflow: hidden; color: #344054; font-size: 11px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.mini-company-copy small { display: block; margin-top: 2px; color: #9aa3b3; font-size: 9px; }
.mini-company-value { text-align: right; }
.mini-company-value strong { display: block; color: #344054; font-size: 11px; }
.mini-company-value small { display: block; margin-top: 2px; font-size: 9px; font-weight: 700; }
.bottom-grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(260px,.9fr); gap: 17px; }
.quick-actions { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }
.quick-action { min-height: 100px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 12px; border: 1px solid #e9edf5; border-radius: 12px; background: #fff; text-align: left; transition: .15s ease; }
.quick-action:hover { border-color: #b9cdfa; box-shadow: 0 5px 14px rgba(37,99,235,.07); transform: translateY(-1px); }
.quick-action-icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; color: var(--blue); background: #eef4ff; }
.quick-action-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.quick-action strong { font-size: 10px; }
.quick-action small { color: #9aa3b3; font-size: 9px; }
.transaction-list { display: flex; flex-direction: column; }
.transaction-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f0f2f6; }
.transaction-row:first-child { padding-top: 0; }
.transaction-row:last-child { padding-bottom: 0; border-bottom: 0; }
.transaction-icon { display: grid; place-items: center; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 10px; color: #2563eb; background: #edf4ff; }
.transaction-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.transaction-copy { min-width: 0; flex: 1; }
.transaction-copy strong { display: block; overflow: hidden; color: #475467; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.transaction-copy small { display: block; margin-top: 3px; color: #a0a8b6; font-size: 9px; }
.transaction-amount { text-align: right; white-space: nowrap; }
.transaction-amount strong { display: block; color: #344054; font-size: 10px; }
.transaction-amount small { color: #98a2b3; font-size: 8px; }
.section-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.company-card { display: flex; flex-direction: column; padding: 17px; }
.company-card-head { display: flex; align-items: flex-start; gap: 11px; }
.company-card-head .company-mark { width: 43px; height: 43px; border-radius: 13px; }
.company-card-title { min-width: 0; flex: 1; }
.company-card-title h3 { overflow-wrap: anywhere; }
.company-card-title p { margin: 3px 0 0; color: #98a2b3; font-size: 9px; }
.company-tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 6px; color: #667085; background: #f3f5f9; font-size: 8px; font-weight: 700; }
.company-desc { min-height: 36px; margin: 14px 0; color: #667085; font-size: 10px; line-height: 1.7; }
.company-price-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-bottom: 14px; }
.company-price { font-size: 21px; font-weight: 800; letter-spacing: -.7px; }
.company-price small { color: #98a2b3; font-size: 9px; font-weight: 600; letter-spacing: 0; }
.company-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin-bottom: 15px; padding: 10px 0; border-top: 1px solid #f0f2f6; border-bottom: 1px solid #f0f2f6; }
.company-stat span { display: block; color: #98a2b3; font-size: 8px; }
.company-stat strong { display: block; margin-top: 3px; color: #475467; font-size: 10px; }
.company-card-actions { display: flex; gap: 7px; margin-top: auto; }
.company-card-actions .btn { flex: 1; }
.table-card { overflow: hidden; }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 19px; border-bottom: 1px solid #edf0f5; }
.table-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.data-table { width: 100%; border-collapse: collapse; font-size: 10px; white-space: nowrap; }
.data-table th { padding: 12px 18px; color: #98a2b3; background: #fafbfd; font-size: 9px; font-weight: 700; text-align: left; }
.data-table td { padding: 13px 18px; border-top: 1px solid #f0f2f6; color: #475467; }
.data-table tr:hover td { background: #fbfcff; }
.data-table .align-right { text-align: right; }
.data-table .align-right .badge { justify-content: flex-end; }
.table-company { display: flex; align-items: center; gap: 9px; min-width: 130px; }
.table-company .company-mark { width: 30px; height: 30px; border-radius: 9px; font-size: 9px; }
.table-company strong { display: block; color: #344054; font-size: 10px; }
.table-company small { display: block; margin-top: 2px; color: #98a2b3; font-size: 8px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px; border-radius: 6px; font-size: 9px; font-weight: 750; }
.badge-green { color: #16815c; background: #e9f9f1; }
.badge-red { color: #c33d3d; background: #fff0f0; }
.badge-blue { color: #235bd5; background: #edf4ff; }
.badge-amber { color: #9a670d; background: #fff6df; }
.badge-gray { color: #667085; background: #f1f3f7; }
/* Lightweight repayment progress indicator. */
.loan-progress { width: 100%; height: 4px; margin: 7px 0 8px; overflow: hidden; border-radius: 999px; background: #e8edf6; }
.loan-progress > span { display: block; height: 100%; border-radius: inherit; background: #2563eb; transition: width .18s ease; }
@media (prefers-reduced-motion: reduce) { .loan-progress > span { transition: none; } }

.debt-banner { display: flex; align-items: center; gap: 11px; margin: 0 0 16px; padding: 13px 14px; border: 1px solid #fecaca; border-radius: 12px; background: #fff1f2; color: #991b1b; }
.debt-banner-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; border-radius: 10px; background: #fee2e2; color: #b91c1c; }
.debt-banner-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.debt-banner > div { min-width: 0; flex: 1; }
.debt-banner strong { display: block; color: #991b1b; font-size: 11px; }
.debt-banner small { display: block; margin-top: 3px; color: #b91c1c; font-size: 9px; line-height: 1.5; }
.exchange-cap-banner { margin: 8px 0 0; }
.exchange-limit-warning { margin-top: 8px; border-color: #fecaca; background: #fff1f2; color: #991b1b; }
.exchange-limit-warning strong { color: #991b1b; }
.exchange-limit-warning svg { stroke: #dc2626; }
.exchange-cap-help { margin: 8px 0 0; color: #64748b; line-height: 1.6; }
.segmented { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px; border: 1px solid #edf0f5; border-radius: 9px; background: #f8fafd; }
.segmented button { padding: 6px 10px; border: 0; border-radius: 6px; color: #7c8799; background: transparent; font-size: 9px; font-weight: 700; }
.segmented button.active { color: #fff; background: var(--navy); box-shadow: 0 1px 3px rgba(15,23,42,.13); }
.filter-input { display: flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 10px; border: 1px solid #e3e8f0; border-radius: 9px; background: #fff; }
.filter-input svg { width: 14px; height: 14px; fill: none; stroke: #9aa4b3; stroke-width: 1.8; }
.filter-input input { width: 100%; min-width: 50px; border: 0; outline: none; background: transparent; font-size: 10px; }
.filter-input input::placeholder { color: #a0a8b5; }
.portfolio-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(280px,.75fr); gap: 16px; }
.allocation-bar { display: flex; width: 100%; height: 9px; gap: 3px; margin: 18px 0 16px; overflow: hidden; border-radius: 8px; }
.allocation-bar span { display: block; height: 100%; border-radius: 4px; }
.allocation-list { display: flex; flex-direction: column; gap: 11px; }
.allocation-item { display: flex; align-items: center; gap: 8px; }
.allocation-dot { width: 8px; height: 8px; border-radius: 3px; }
.allocation-item span:nth-child(2) { flex: 1; color: #667085; font-size: 10px; }
.allocation-item strong { color: #344054; font-size: 10px; }
.exchange-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,.75fr); gap: 16px; align-items: start; }
.exchange-box { padding: 22px; }
.exchange-fields { display: flex; flex-direction: column; gap: 10px; }
.currency-field { padding: 13px; border: 1px solid #e7ebf2; border-radius: 13px; background: #fcfdff; }
.currency-field label { display: block; margin-bottom: 9px; color: #8993a4; font-size: 9px; font-weight: 700; }
.currency-field-bottom { display: flex; align-items: center; gap: 10px; }
.currency-select { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid #e4eaf3; border-radius: 9px; background: #fff; }
.currency-symbol { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; color: #fff; background: var(--blue); font-size: 10px; font-weight: 800; }
.currency-select select { max-width: 118px; border: 0; outline: 0; color: #344054; background: transparent; font-size: 10px; font-weight: 700; }
.amount-input { width: 100%; min-width: 0; border: 0; outline: 0; color: #101828; background: transparent; text-align: right; font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.swap-row { display: flex; align-items: center; justify-content: center; height: 20px; }
.swap-circle { display: grid; place-items: center; width: 31px; height: 31px; border: 4px solid #fff; border-radius: 10px; background: #eef4ff; color: var(--blue); cursor: pointer; }
.swap-circle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.exchange-summary { margin-top: 15px; padding: 13px; border-radius: 11px; background: #f6f8fc; }
.summary-row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; color: #7c8799; font-size: 10px; }
.summary-row strong { color: #344054; font-size: 10px; font-weight: 750; text-align: right; }
.summary-row.total { margin-top: 6px; padding-top: 11px; border-top: 1px solid #e4e9f1; color: #344054; font-weight: 750; }
.summary-row.total strong { color: var(--blue); font-size: 15px; }
.exchange-rate-note { display: flex; align-items: flex-start; gap: 8px; margin: 15px 0; color: #7c8799; font-size: 9px; line-height: 1.6; }
.exchange-rate-note svg { width: 15px; height: 15px; flex: 0 0 auto; fill: none; stroke: #7c95c2; stroke-width: 1.8; }
.full-width { width: 100%; }
.wallet-list { display: flex; flex-direction: column; gap: 10px; }
.wallet-row { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid #e9edf5; border-radius: 12px; }
.wallet-row .currency-symbol { width: 36px; height: 36px; border-radius: 11px; }
.wallet-info { min-width: 0; flex: 1; }
.wallet-info strong { display: block; color: #344054; font-size: 11px; }
.wallet-info small { display: block; color: #98a2b3; font-size: 9px; }
.wallet-balance { text-align: right; }
.wallet-balance strong { display: block; color: #344054; font-size: 12px; }
.wallet-balance small { display: block; color: #98a2b3; font-size: 9px; }
.auction-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.auction-art { position: relative; display: flex; align-items: flex-end; min-height: 135px; padding: 16px; border-radius: 13px; overflow: hidden; color: #fff; background: linear-gradient(135deg,#0f172a,#1e40af); }
.auction-art:before, .auction-art:after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; pointer-events: none; }
.auction-art:before { width: 150px; height: 150px; right: -32px; top: -50px; }
.auction-art:after { width: 100px; height: 100px; right: 5px; top: -10px; }
.auction-art.violet { background: linear-gradient(135deg,#21143f,#6d28d9); }
.auction-art.teal { background: linear-gradient(135deg,#083344,#0f766e); }
.auction-art.orange { background: linear-gradient(135deg,#431407,#c2410c); }
.auction-art.pink { background: linear-gradient(135deg,#4a044e,#be185d); }
.auction-art.slate { background: linear-gradient(135deg,#1e293b,#475569); }
.auction-art-copy { position: relative; z-index: 1; }
.auction-art-copy small { display: block; margin-bottom: 5px; color: #c9ddff; font-size: 8px; font-weight: 800; letter-spacing: 1.1px; text-transform: uppercase; }
.auction-art-copy strong { display: block; max-width: 220px; font-size: 17px; line-height: 1.2; letter-spacing: -.3px; }
.auction-card { min-width: 0; padding: 13px; }
.auction-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 12px 0 10px; }
.auction-meta span { color: #98a2b3; font-size: 9px; }
.auction-price { color: #111827; font-size: 19px; font-weight: 800; letter-spacing: -.5px; }
.auction-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 11px 0 13px; padding-top: 10px; border-top: 1px solid #f0f2f6; }
.auction-foot small { color: #98a2b3; font-size: 9px; }
.loan-top-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-bottom: 16px; }
.loan-kpi { padding: 16px; }
.loan-kpi span { display: block; color: #8b95a7; font-size: 10px; }
.loan-kpi strong { display: block; margin: 8px 0 5px; color: #101828; font-size: 22px; font-weight: 800; letter-spacing: -.6px; }
.loan-kpi small { color: #98a2b3; font-size: 9px; }
.fund-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,.8fr); gap: 16px; align-items: start; }
.fund-visual { display: flex; align-items: center; gap: 22px; }
.donut { position: relative; display: grid; place-items: center; flex: 0 0 auto; width: 132px; height: 132px; border-radius: 50%; background: conic-gradient(#2563eb 0 35%, #38bdf8 35% 68%, #e8edf6 68% 100%); }
.donut:after { content: ""; position: absolute; inset: 13px; border-radius: 50%; background: #fff; }
.donut-content { position: relative; z-index: 1; text-align: center; }
.donut-content strong { display: block; color: #172033; font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.donut-content small { color: #98a2b3; font-size: 9px; }
.fund-legend { display: flex; flex-direction: column; gap: 11px; min-width: 0; flex: 1; }
.fund-legend-row { display: flex; align-items: flex-start; gap: 8px; }
.fund-legend-row i { width: 8px; height: 8px; margin-top: 4px; border-radius: 3px; flex: 0 0 auto; }
.fund-legend-row span { color: #7b8798; font-size: 9px; flex: 1; }
.fund-legend-row strong { color: #344054; font-size: 10px; white-space: nowrap; }
.callout { display: flex; align-items: flex-start; gap: 10px; padding: 13px; border: 1px solid #d7e6ff; border-radius: 12px; background: #f3f8ff; color: #4e6484; font-size: 10px; line-height: 1.7; }
.callout svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 1px; fill: none; stroke: #2563eb; stroke-width: 1.8; }
.callout strong { color: #234f9c; }
.callout.warning { border-color: #f4e2b9; background: #fffaf0; color: #806c45; }
.callout.warning svg { stroke: #b7791f; }
.loan-calc { padding: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 13px; }
.field label { color: #667085; font-size: 10px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; min-height: 39px; padding: 9px 11px; border: 1px solid #dfe5ee; border-radius: 9px; outline: none; color: #344054; background: #fff; font-size: 11px; }
.field textarea { min-height: 76px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #8bb2fb; box-shadow: 0 0 0 3px rgba(37,99,235,.08); }
.field-help { margin-top: -2px; color: #98a2b3; font-size: 9px; }
.range-wrap { display: flex; flex-direction: column; gap: 8px; }
.range-wrap input[type=range] { width: 100%; accent-color: var(--blue); }
.range-labels { display: flex; justify-content: space-between; color: #98a2b3; font-size: 9px; }
.loan-total { display: flex; flex-direction: column; gap: 8px; margin: 13px 0 17px; padding: 12px; border-radius: 11px; background: #f6f8fc; }
.loan-total .summary-row.total { margin-top: 2px; }
.loan-list { display: flex; flex-direction: column; }
.loan-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #edf0f5; }
.loan-row:last-child { border-bottom: 0; }
.loan-row-copy { flex: 1; min-width: 0; }
.loan-row-copy strong { display: block; color: #344054; font-size: 10px; }
.loan-row-copy small { display: block; margin-top: 3px; color: #98a2b3; font-size: 9px; }
.loan-row-value { text-align: right; }
.loan-row-value strong { display: block; font-size: 10px; }
.loan-row-value small { display: block; margin-top: 3px; color: #98a2b3; font-size: 9px; }
.emission-history { margin-top: 13px; padding: 12px; border: 1px solid #e8edf5; border-radius: 11px; background: #fafcff; }
.emission-history > strong { display: block; margin-bottom: 7px; color: #344054; font-size: 10px; }
.emission-history-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid #edf0f5; color: #7c8799; font-size: 9px; }
.emission-history-row strong { color: #344054; font-size: 9px; white-space: nowrap; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 210px; padding: 25px; text-align: center; }
.empty-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 13px; border-radius: 14px; color: #2563eb; background: #edf4ff; }
.empty-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.empty-state h3 { margin-bottom: 6px; }
.empty-state p { max-width: 330px; margin-bottom: 13px; color: #98a2b3; font-size: 10px; line-height: 1.7; }
.modal-backdrop { position: fixed; z-index: 100; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(10,19,38,.56); }
.modal { width: min(100%, 520px); max-height: min(90vh, 760px); overflow-y: auto; border: 1px solid rgba(255,255,255,.7); border-radius: 18px; background: #fff; box-shadow: var(--shadow-modal); animation: modal-in .16s ease-out; }
.modal.modal-wide { width: min(100%, 680px); }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 20px 22px 15px; border-bottom: 1px solid #edf0f5; }
.modal-head h2 { font-size: 17px; }
.modal-head p { margin: 5px 0 0; color: #8893a4; font-size: 10px; line-height: 1.6; }
.modal-body { padding: 20px 22px 22px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 9px; padding: 13px 22px 20px; }
.modal-close { flex: 0 0 auto; }
.order-summary { margin: 14px 0; padding: 13px; border-radius: 11px; background: #f6f8fc; }
.modal-company { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid #edf0f5; border-radius: 12px; }
.modal-company .company-mark { width: 47px; height: 47px; }
.modal-company-copy { min-width: 0; flex: 1; }
.modal-company-copy strong { display: block; font-size: 13px; }
.modal-company-copy small { display: block; margin-top: 3px; color: #98a2b3; font-size: 9px; }
.modal-company-price { text-align: right; }
.modal-company-price strong { display: block; font-size: 17px; }
.modal-company-price small { color: #98a2b3; font-size: 9px; }
.toast-root { position: fixed; z-index: 150; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 9px; max-width: min(360px,calc(100vw - 32px)); pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 13px 15px; border: 1px solid #dce7f8; border-radius: 12px; background: #fff; color: #344054; box-shadow: 0 14px 35px rgba(15,23,42,.14); font-size: 11px; animation: toast-in .2s ease-out; }
.toast-icon { display: grid; place-items: center; width: 22px; height: 22px; flex: 0 0 auto; border-radius: 7px; color: #16815c; background: #e7f7ef; }
.toast-icon svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.toast.error .toast-icon { color: #c33d3d; background: #fff0f0; }
.toast p { margin: 2px 0 0; line-height: 1.5; }
@keyframes toast-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.mobile-nav { display: none; }
@media (max-width: 1250px) {
  :root { --sidebar-width: 226px; }
  .sidebar { padding-left: 12px; padding-right: 12px; }
  .main-content { padding-left: 25px; padding-right: 25px; }
  .topbar { padding-left: 25px; padding-right: 25px; }
  .kpi-grid { gap: 10px; }
  .kpi-card { padding: 14px; }
  .section-grid, .auction-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 980px) {
  :root { --sidebar-width: 0px; }
  .sidebar { width: 252px; transform: translateX(-102%); transition: transform .2s ease; box-shadow: 20px 0 50px rgba(15,23,42,.17); }
  .sidebar.open { transform: translateX(0); }
  .workspace { margin-left: 0; }
  .mobile-menu { display: inline-grid; }
  .topbar { justify-content: flex-start; gap: 13px; }
  .topbar-actions { margin-left: auto; }
  .dashboard-hero { grid-template-columns: minmax(0,1fr) minmax(210px,.65fr); }
  .kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .bottom-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 700px) {
  .topbar { min-height: 60px; padding: 0 14px; }
  .breadcrumbs { gap: 5px; font-size: 10px; }
  .quick-search { width: 36px; padding: 0 9px; border-color: transparent; background: transparent; }
  .quick-search input, .quick-search kbd { display: none; }
  .topbar-actions { gap: 7px; }
  .top-avatar { width: 30px; height: 30px; }
  .main-content { padding: 22px 14px 94px; }
  .page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 18px; }
  .heading-actions { width: 100%; }
  .heading-actions .btn { flex: 1; }
  h1 { font-size: 24px; }
  .dashboard-hero { grid-template-columns: minmax(0,1fr); gap: 20px; padding: 20px; border-radius: 16px; }
  .hero-side { min-height: 0; padding: 14px 0 0; border-left: 0; border-top: 1px solid rgba(219,234,254,.18); }
  .hero-side .hero-balance { font-size: 28px; }
  .kpi-grid { gap: 9px; }
  .kpi-card { padding: 12px; border-radius: 13px; }
  .kpi-top { align-items: flex-start; margin-bottom: 10px; }
  .kpi-label { max-width: 100px; line-height: 1.4; }
  .kpi-icon { width: 28px; height: 28px; }
  .kpi-value { font-size: 19px; }
  .kpi-foot { font-size: 8px; }
  .dashboard-grid, .portfolio-grid, .exchange-layout, .fund-layout { grid-template-columns: minmax(0,1fr); }
  .card-pad { padding: 15px; }
  .quick-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .quick-action { min-height: 90px; }
  .section-grid, .auction-grid { grid-template-columns: minmax(0,1fr); }
  .company-desc { min-height: 0; }
  .loan-top-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .loan-kpi { padding: 13px; }
  .loan-kpi:last-child { grid-column: 1 / -1; }
  .loan-kpi strong { font-size: 20px; }
  .fund-visual { align-items: flex-start; gap: 14px; }
  .donut { width: 108px; height: 108px; }
  .donut:after { inset: 11px; }
  .donut-content strong { font-size: 18px; }
  .table-toolbar { align-items: flex-start; flex-direction: column; padding: 14px; }
  .table-toolbar > * { max-width: 100%; }
  .table-toolbar .filter-input { width: 100%; }
  .exchange-box { padding: 15px; }
  .currency-field { padding: 10px; }
  .currency-select { gap: 5px; padding: 5px; }
  .currency-select select { max-width: 93px; font-size: 9px; }
  .amount-input { font-size: 19px; }
  .page-footer { gap: 9px 12px; font-size: 9px; }
  .footer-link { width: 100%; margin-left: 0; text-align: left; }
  .modal-backdrop { align-items: flex-end; padding: 0; }
  .modal, .modal.modal-wide { width: 100%; max-height: 92vh; border-radius: 18px 18px 0 0; border-bottom: 0; }
  .modal-head { padding: 17px 17px 13px; }
  .modal-body { padding: 17px; }
  .modal-foot { padding: 12px 17px calc(16px + env(safe-area-inset-bottom)); }
  .modal-foot .btn { flex: 1; }
  .toast-root { right: 10px; bottom: calc(72px + env(safe-area-inset-bottom)); left: 10px; max-width: none; }
  .toast { font-size: 10px; }
  .mobile-nav { position: fixed; z-index: 35; inset: auto 0 0; display: flex; justify-content: space-around; gap: 2px; padding: 7px 6px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid #e4e9f1; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }
  .mobile-nav button { display: flex; min-width: 0; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 3px 2px; border: 0; border-radius: 8px; color: #8b95a7; background: transparent; font-size: 8px; font-weight: 700; }
  .mobile-nav button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-nav button.active { color: var(--blue); background: #eff5ff; }
}
@media (max-width: 700px) {
  .debt-banner { align-items: flex-start; flex-wrap: wrap; }
  .debt-banner > div { flex-basis: calc(100% - 54px); }
  .debt-banner > .badge { margin-left: 47px; }
  .emission-history-row { align-items: flex-start; flex-direction: column; gap: 3px; }
}
@media (max-width: 390px) {
  .main-content { padding-left: 10px; padding-right: 10px; }
  .dashboard-hero { padding: 17px; }
  .kpi-value { font-size: 17px; }
  .kpi-label { font-size: 9px; }
  .card-header { gap: 7px; }
  .segmented button { padding: 6px 7px; }
  .company-card { padding: 13px; }
  .company-price { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Currency is represented by a reusable lightweight SVG coin instead of text codes. */
.money-display { display: inline-flex; align-items: center; justify-content: inherit; gap: 5px; white-space: nowrap; vertical-align: middle; font-variant-numeric: tabular-nums; }
.coin-icon { display: inline-block; width: 1.08em; height: 1.08em; flex: 0 0 auto; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.16em; }
.coin-main { color: #c99a2e; }
.coin-games { color: #0284c7; }
.coin-capital { color: #2563eb; }
.currency-symbol .coin-icon { width: 22px; height: 22px; color: #fff; vertical-align: middle; }
.wallet-row .currency-symbol .coin-icon { width: 26px; height: 26px; }
.transaction-icon .coin-icon { width: 18px; height: 18px; }
.empty-state-compact { min-height: 150px; padding: 16px; }
.empty-state-compact .empty-icon { margin-bottom: 9px; }
.hero-actions { flex-wrap: wrap; }
.coin-fx-root { position: fixed; z-index: 145; inset: 0; overflow: hidden; pointer-events: none; }
.coin-flight { position: absolute; right: clamp(38px, 13vw, 180px); bottom: 82px; display: grid; place-items: center; width: 26px; height: 26px; opacity: 0; animation: coin-flight 860ms cubic-bezier(.2,.7,.2,1) var(--coin-delay,0ms) both; will-change: transform, opacity; filter: drop-shadow(0 5px 6px rgba(15,23,42,.12)); }
.coin-flight .coin-icon { width: 25px; height: 25px; stroke-width: 1.6; }
@keyframes coin-flight { 0% { opacity: 0; transform: translate3d(0,0,0) rotate(0) scale(.55); } 16% { opacity: 1; transform: translate3d(0,-7px,0) rotate(12deg) scale(1.06); } 62% { opacity: .95; } 100% { opacity: 0; transform: translate3d(var(--coin-x,0),var(--coin-y,-80px),0) rotate(var(--coin-rotate,45deg)) scale(.8); } }
.toast-coin { color: #2563eb; background: #eaf2ff; }
.toast-coin .coin-icon { width: 16px; height: 16px; animation: coin-tap 520ms ease-out; }
@keyframes coin-tap { 0% { transform: rotateY(0) scale(.72); } 55% { transform: rotateY(180deg) scale(1.12); } 100% { transform: rotateY(360deg) scale(1); } }
@media (prefers-reduced-motion: reduce) { .coin-flight, .toast-coin .coin-icon, .nav-count.debt-count { animation: none !important; opacity: 1; } .coin-flight { display: none; } }


/* Quick actions for a transparent, low-friction loan repayment flow. */
.repay-presets { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.repay-presets .btn { flex: 1 1 auto; min-height: 36px; white-space: normal; }
@media (max-width: 520px) {
  .repay-presets .btn { flex-basis: calc(50% - 7px); }
}
@media (prefers-reduced-motion: reduce) {
  .repay-presets *, .loan-progress > span { transition: none !important; animation: none !important; }
}

.loan-repayment-guide { line-height: 1.7; }
.loan-repayment-guide strong { display: inline-block; margin-right: 3px; }
