/* ============================================================
   BNP Paribas Ireland Portal – portal-specific styles
   Builds on assets/styles.css (shared design tokens).
   ============================================================ */

:root {
  --sans-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --heading-font: var(--sans-stack);
  --body-font:    var(--sans-stack);
  --medium-font:  var(--sans-stack);
  --figure-font:  var(--sans-stack);
}

/* Headings: solid weight for readability */
.main--portal h1, .portal-topbar h1, .section-head h2,
h1.page-title, h2.section-title { font-weight: 700; letter-spacing: -0.2px; }
.header-user .hu-name { font-weight: 600; }

/* Tabular / lining numerals for financial figures */
.input,
.summary-metric .value,
.pc-balance .bl-value,
.admin-product .ap-balance,
.ledger .amt,
.fund-row .fr-value,
.mini-ledger .ml-amt,
.rate-card .rc-rate {
  font-variant-numeric: tabular-nums lining;
  font-feature-settings: "tnum" 1, "lnum" 1;
}
.summary-metric .value,
.pc-balance .bl-value,
.admin-product .ap-balance,
.ledger .amt,
.fund-row .fr-value,
.mini-ledger .ml-amt,
.rate-card .rc-rate,
.pc-rate .r { font-family: var(--figure-font); }

.summary-metric .value,
.pc-balance .bl-value,
.admin-product .ap-balance {
  font-weight: 600; letter-spacing: -0.25px; color: var(--grey-000);
}
.summary-metric .value.small { letter-spacing: -0.15px; font-weight: 600; }

/* ---------- Portal shell ---------- */
.main--portal { background: var(--grey-900); padding: 0 0 72px; }
.portal-wrap  { max-width: var(--shell-width); margin: 0 auto; padding: 0 24px; }

/* ---------- Header additions ---------- */
.header-right { display: flex; align-items: center; gap: 20px; }
.header-user  { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.3; text-align: right; }
.header-user .hu-name { color: var(--grey-000); font-size: 15px; }
.header-user .hu-role { color: var(--blue-500); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.header-nav { display: flex; gap: 4px; }
.header-nav a {
  color: var(--grey-300); font-weight: 500; font-size: 14px;
  padding: 8px 14px; letter-spacing: 0.3px; border-radius: var(--radius-btn);
  transition: background .15s ease, color .15s ease;
  display: flex; align-items: center; gap: 6px; text-decoration: none;
}
.header-nav a svg { width: 16px; height: 16px; flex: none; }
.header-nav a:hover { color: var(--grey-000); text-decoration: none; background: var(--grey-850); }
.header-nav a.is-active { color: var(--blue-500); background: var(--blue-800); font-weight: 700; }

/* ---------- Greeting / topbar ---------- */
.portal-topbar { background: var(--white); padding: 34px 0 90px; border-bottom: 1px solid var(--grey-800); }
.portal-topbar .eyebrow { color: var(--blue-500); margin-bottom: 10px; }
.portal-topbar h1 { font-size: 30px; letter-spacing: -0.3px; margin-bottom: 6px; color: var(--grey-000); }
.portal-topbar p { color: var(--grey-300); font-size: 15px; }
.portal-body { margin-top: -64px; position: relative; z-index: 2; }

/* ---------- Summary strip ---------- */
.summary-card {
  background: var(--white); border: 1px solid var(--grey-800);
  border-radius: var(--radius-card); box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  padding: 28px 32px; display: flex; flex-wrap: wrap;
  gap: 32px; align-items: center; justify-content: space-between; margin-bottom: 28px;
}
.summary-metric { display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; }
.summary-metric .label { font-size: 13px; letter-spacing: 0.5px; text-transform: uppercase; color: var(--grey-300); display: block; width: 100%; text-align: center; }
.summary-metric .value { font-size: 34px; color: var(--grey-000); line-height: 1; display: block; width: 100%; text-align: center; }
.summary-metric .value.small { font-size: 22px; display: block; width: 100%; text-align: center; }
.summary-metric .sub { font-size: 13px; color: var(--grey-300); display: block; width: 100%; text-align: center; }
.summary-divider { width: 1px; align-self: stretch; background: var(--grey-800); }
.summary-actions { display: flex; gap: 12px; margin-left: auto; }
.metric-label-icon { display: flex; align-items: center; justify-content: center; gap: 6px; }

/* ---------- Section heads ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 36px 0 16px; }
.section-head h2 { font-size: 22px; letter-spacing: -0.2px; color: var(--grey-000); }
.section-head .section-note { font-size: 13px; color: var(--grey-300); }

/* ---------- Rates strip ---------- */
.rate-strip {
  background: var(--blue-800); border: 1px solid var(--blue-700);
  border-radius: var(--radius-card); padding: 22px 24px; margin-bottom: 8px;
}
.rate-strip-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 8px; }
.rate-strip-head h3 { font-size: 16px; color: var(--blue-300); font-weight: 600; }
.rate-strip-head .valid { font-size: 13px; color: var(--blue-400); }
.rate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.rate-card {
  background: var(--white); border: 1px solid var(--blue-700);
  border-radius: var(--radius-input); padding: 16px;
  display: flex; flex-direction: column; gap: 6px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.rate-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.rate-card .rc-rate { font-size: 26px; color: var(--blue-400); line-height: 1; }
.rate-card .rc-rate span { font-size: 13px; color: var(--grey-300); letter-spacing: 1px; }
.rate-card .rc-name { font-size: 13px; line-height: 18px; color: var(--grey-100); font-weight: 600; }
.rate-card .rc-meta { font-size: 12px; color: var(--grey-300); }
.rate-card .rc-type { font-size: 11px; color: var(--blue-400); text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; font-weight: 600; }

/* ---------- Product (deposit) cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.product-card {
  background: var(--white); border: 1px solid var(--grey-800);
  border-top: 3px solid var(--blue-500); border-radius: var(--radius-card);
  display: flex; flex-direction: column;
  transition: box-shadow .18s ease, transform .18s ease;
}
.product-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); transform: translateY(-2px); }
.pc-top { padding: 22px 24px 18px; border-bottom: 1px solid var(--grey-850); }
.pc-type-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.pc-badge { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; padding: 4px 9px; border-radius: 2px; font-weight: 600; }
.pc-badge--personal { background: var(--blue-800); color: var(--blue-400); }
.pc-badge--business { background: #EEF4FF; color: #2B4DB3; }
.pc-name { font-size: 20px; font-weight: 700; color: var(--grey-000); margin-top: 6px; }
.pc-rate { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; }
.pc-rate .r { font-size: 18px; color: var(--blue-400); font-weight: 600; }
.pc-rate .aer { font-size: 12px; letter-spacing: 1px; color: var(--grey-500); }
.pc-balance { padding: 20px 24px; text-align: center; }
.pc-balance .bl-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--grey-300); text-align: center; display: block; }
.pc-balance .bl-value { font-size: 30px; color: var(--grey-000); line-height: 1.1; margin-top: 2px; font-weight: 600; text-align: center; display: block; }
.pc-meta { padding: 0 24px 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.pc-meta .m { display: flex; flex-direction: column; }
.pc-meta .m .k { font-size: 12px; color: var(--grey-300); }
.pc-meta .m .v { font-size: 14px; color: var(--grey-100); font-weight: 600; }
.pc-foot { margin-top: auto; padding: 14px 24px; border-top: 1px solid var(--grey-850); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pc-updated { font-size: 12px; color: var(--grey-500); display: flex; align-items: center; gap: 6px; }

/* ---------- Application status card ---------- */
.app-status-card {
  background: var(--white); border: 1px solid var(--grey-800); border-radius: var(--radius-card);
  overflow: hidden; margin-bottom: 20px;
}
.app-status-head {
  padding: 22px 28px; border-bottom: 1px solid var(--grey-850);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.app-status-head h2 { font-size: 20px; font-weight: 700; color: var(--grey-000); }
.app-status-body { padding: 24px 28px; }
.app-req-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.app-req {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: var(--radius-input);
  border: 1px solid var(--grey-800); background: var(--grey-900);
}
.app-req.is-done { border-color: var(--blue-700); background: var(--blue-800); }
.app-req .req-icon { flex: none; width: 32px; height: 32px; border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.app-req .req-icon--pending { background: var(--alert-800); color: var(--alert-400); }
.app-req .req-icon--done    { background: var(--success-800); color: var(--success-500); }
.app-req .req-text { flex: 1; }
.app-req .req-text strong { font-size: 14px; color: var(--grey-000); display: block; }
.app-req .req-text span   { font-size: 13px; color: var(--grey-300); }

/* ---------- Empty state ---------- */
.empty-state {
  background: var(--white); border: 1px dashed var(--grey-700);
  border-radius: var(--radius-card); padding: 48px 32px; text-align: center; color: var(--grey-300);
}
.empty-state h3 { font-size: 20px; font-weight: 700; color: var(--grey-100); margin-bottom: 6px; }

/* ---------- Ledger / transactions ---------- */
.ledger { background: var(--white); border: 1px solid var(--grey-800); border-radius: var(--radius-card); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ledger table { width: 100%; border-collapse: collapse; min-width: 560px; }
.ledger th {
  text-align: left; font-size: 12px; letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--grey-300); padding: 14px 20px; border-bottom: 1px solid var(--grey-800);
  background: var(--grey-900); font-weight: 600;
}
.ledger td { padding: 15px 20px; border-bottom: 1px solid var(--grey-850); font-size: 14px; color: var(--grey-100); vertical-align: middle; }
.ledger tr:last-child td { border-bottom: none; }
.ledger .amt { text-align: right; font-weight: 600; white-space: nowrap; }
.ledger .amt.pos { color: var(--success-500); }
.ledger .amt.neg { color: var(--error-400); }
.ledger .col-right { text-align: right; }
.tx-tag { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; text-transform: capitalize; padding: 3px 8px; border-radius: 2px; }
.tx-tag--deposit    { background: var(--blue-800); color: var(--blue-400); }
.tx-tag--interest   { background: var(--success-800); color: var(--success-400); }
.tx-tag--withdrawal { background: var(--error-800); color: var(--error-400); }
.tx-time { font-size: 12px; color: var(--grey-500); }

/* ---------- Top navigation bar (login) ---------- */
.topnav { background: var(--white); border-bottom: 1px solid var(--grey-800); }
.topnav-inner {
  max-width: var(--shell-width); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 48px;
}
.topnav-actions { display: flex; align-items: center; gap: 12px; }
.topnav-btn { padding: 8px 20px; font-size: 12px; letter-spacing: 1.5px; }

/* ---------- Login page ---------- */
.header--login { border-bottom: none; padding: 16px 0; }
.header--login .header-inner { height: auto; }
.logo-lg { height: 44px !important; width: auto; }
.login-main { background: var(--white); padding: 40px 20px 80px; flex: 1; }
.login-grid { max-width: 560px; margin: 0 auto; }
.login-heading { font-size: 26px; line-height: 34px; color: var(--grey-000); margin: 0 0 32px; font-weight: 400; }
.input--lg { padding: 18px 20px; font-size: 17px; }
.forgot-line { margin: 0 0 28px; }
.forgot-line a { font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--blue-500); }
.forgot-line a:hover { text-decoration: underline; }
.btn--login { width: auto; min-width: 200px; padding: 16px 48px; }
.login-card { background: var(--white); border: none; box-shadow: none; padding: 0; }
.login-error { color: var(--error-400); font-size: 14px; margin-top: 12px; display: none; }
.login-error.show { display: block; }
.login-hero-badge {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: var(--radius-input);
  background: var(--blue-800); border: 1px solid var(--blue-700); margin-bottom: 24px;
}
.login-hero-badge svg { width: 20px; height: 20px; color: var(--blue-500); flex: none; }
.login-hero-badge span { font-size: 14px; color: var(--blue-400); font-weight: 600; }
.login-pitch { margin-top: 36px; }
.login-pitch h3 { font-size: 18px; font-weight: 700; color: var(--grey-000); margin-bottom: 16px; }
.login-pitch .benefit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.login-pitch .benefit {
  display: flex; align-items: flex-start; gap: 10px; padding: 14px;
  border-radius: var(--radius-input); background: var(--grey-900); border: 1px solid var(--grey-800);
}
.login-pitch .benefit svg { flex: none; color: var(--blue-500); margin-top: 2px; }
.login-pitch .benefit p { font-size: 13px; line-height: 19px; color: var(--grey-100); }
.login-pitch .benefit strong { display: block; font-size: 14px; color: var(--grey-000); margin-bottom: 2px; font-weight: 600; }
.footer--login { background: var(--grey-850); }

/* ---------- Admin panel ---------- */
.admin-layout { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
.admin-side { background: var(--white); border: 1px solid var(--grey-800); border-radius: var(--radius-card); position: sticky; top: 24px; overflow: hidden; }
.admin-side h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--grey-300); padding: 18px 20px 10px; font-weight: 600; }
.client-list { display: flex; flex-direction: column; }
.client-item {
  text-align: left; background: none; border: none; border-left: 3px solid transparent;
  padding: 14px 20px; cursor: pointer; border-top: 1px solid var(--grey-850);
  display: flex; flex-direction: column; gap: 2px;
}
.client-item:hover { background: var(--grey-900); }
.client-item.is-active { background: var(--blue-800); border-left-color: var(--blue-500); }
.client-item .ci-name { font-weight: 600; font-size: 15px; color: var(--grey-000); }
.client-item .ci-meta { font-size: 12px; color: var(--grey-300); }
.admin-side-foot { padding: 16px 20px; border-top: 1px solid var(--grey-850); }
.admin-panel { display: flex; flex-direction: column; gap: 20px; }
.panel-card { background: var(--white); border: 1px solid var(--grey-800); border-radius: var(--radius-card); padding: 26px 28px; }
.panel-card h2 { font-size: 20px; font-weight: 700; color: var(--grey-000); margin-bottom: 4px; }
.panel-card .panel-sub { font-size: 14px; color: var(--grey-300); margin-bottom: 20px; }
.client-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.client-head .ch-meta { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 12px; }
.client-head .ch-meta .m .k { font-size: 12px; color: var(--grey-300); }
.client-head .ch-meta .m .v { font-size: 14px; color: var(--grey-100); font-weight: 600; }

/* Admin product rows */
.admin-product { border: 1px solid var(--grey-800); border-left: 3px solid var(--blue-500); border-radius: var(--radius-input); padding: 18px 20px; margin-bottom: 14px; }
.admin-product .ap-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.admin-product .ap-title { font-weight: 600; font-size: 16px; color: var(--grey-000); }
.admin-product .ap-sub { font-size: 13px; color: var(--grey-300); margin-top: 2px; }
.admin-product .ap-balance { font-size: 22px; color: var(--grey-000); font-weight: 600; }
.admin-product .ap-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.mini-ledger { margin-top: 14px; border-top: 1px solid var(--grey-850); padding-top: 12px; }
.mini-ledger .ml-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 5px 0; color: var(--grey-100); }
.mini-ledger .ml-row .ml-date { color: var(--grey-300); min-width: 96px; }
.mini-ledger .ml-row .ml-amt { font-weight: 600; white-space: nowrap; }
.btn-sm { padding: 9px 16px; font-size: 13px; letter-spacing: 1.5px; }
.auto-tag { display: inline-block; font-size: 10px; letter-spacing: 0.5px; text-transform: uppercase; vertical-align: middle; padding: 1px 6px; border-radius: 999px; margin-left: 6px; background: var(--blue-800); color: var(--blue-400); border: 1px solid var(--blue-700); }
.ap-calc { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; background: var(--success-800); border: 1px solid var(--success-500); border-radius: 2px; font-size: 13px; color: var(--success-400); }
.ap-calc svg { width: 16px; height: 16px; flex: none; }
.inline-form { background: var(--grey-900); border: 1px solid var(--grey-800); border-radius: var(--radius-input); padding: 20px; margin-top: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.form-grid .field { margin-bottom: 0; }

/* Product picker (admin) */
.product-picker { display: flex; flex-direction: column; gap: 10px; }
.pp-option { display: flex; align-items: center; gap: 14px; border: 1px solid var(--grey-600); border-radius: var(--radius-input); padding: 14px 16px; cursor: pointer; }
.pp-option:hover { border-color: var(--blue-400); background: var(--blue-800); }
.pp-option:has(input:checked) { border-color: var(--blue-400); background: var(--blue-800); box-shadow: inset 0 0 0 1px var(--blue-400); }
.pp-option input { width: 18px; height: 18px; accent-color: var(--blue-500); flex: none; }
.pp-option .pp-name { font-weight: 600; font-size: 15px; color: var(--grey-000); }
.pp-option .pp-sub  { font-size: 12px; color: var(--grey-300); }
.pp-option .pp-type { font-size: 11px; color: var(--blue-400); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.pp-option .pp-rate { margin-left: auto; font-size: 22px; color: var(--blue-400); font-weight: 700; }

/* ---------- Funding / deposit details ---------- */
.fund-card { background: var(--white); border: 1px solid var(--grey-800); border-radius: var(--radius-card); overflow: hidden; }
.fund-head { background: var(--blue-500); color: var(--white); padding: 18px 24px; display: flex; align-items: center; gap: 12px; }
.fund-head svg { width: 22px; height: 22px; color: rgba(255,255,255,0.8); flex: none; }
.fund-head h3 { font-size: 18px; font-weight: 700; letter-spacing: 0.3px; }
.fund-head p  { font-size: 13px; color: rgba(255,255,255,0.75); margin-top: 2px; }
.fund-body { padding: 8px 24px 20px; }
.fund-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--grey-850); }
.fund-row:last-child { border-bottom: none; }
.fund-row .fr-label  { font-size: 13px; color: var(--grey-300); }
.fund-row .fr-value  { font-size: 18px; color: var(--grey-000); letter-spacing: 0.5px; font-weight: 600; }
.fund-row .fr-value.mono { font-variant-numeric: tabular-nums; letter-spacing: 1.5px; }
.fund-row .fr-right  { display: flex; align-items: center; gap: 14px; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 1px solid var(--grey-700); border-radius: var(--radius-btn);
  padding: 7px 12px; cursor: pointer; color: var(--blue-400);
  font-size: 13px; font-weight: 600;
}
.copy-btn:hover { border-color: var(--blue-400); background: var(--blue-800); }
.copy-btn.copied { color: var(--success-500); border-color: var(--success-500); background: var(--success-800); }
.fund-note {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--alert-800); border: 1px solid var(--alert-500);
  border-radius: var(--radius-input); padding: 14px 16px; margin: 16px 24px 20px;
  font-size: 13px; line-height: 20px; color: var(--alert-200);
}
.fund-note svg { width: 18px; height: 18px; color: var(--alert-400); flex: none; margin-top: 1px; }
.fund-protect {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--success-800); border: 1px solid var(--success-500);
  padding: 16px 18px; margin: 0 24px 22px; border-radius: 2px;
}
.fund-protect svg { width: 26px; height: 26px; color: var(--success-500); flex: none; margin-top: 1px; }
.fund-protect h4 { font-weight: 600; font-size: 14px; color: var(--success-400); margin-bottom: 4px; }
.fund-protect p  { font-size: 13px; line-height: 20px; color: var(--grey-100); }
.fund-protect a  { color: var(--success-400); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; right: 24px; bottom: 24px; z-index: 50;
  background: var(--grey-000); color: var(--white);
  padding: 14px 20px; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  border-radius: var(--radius-input); backdrop-filter: blur(8px);
  display: flex; align-items: center; gap: 10px;
  transform: translateY(20px); opacity: 0; pointer-events: none;
  transition: transform .25s ease, opacity .25s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast svg { width: 18px; height: 18px; color: var(--blue-500); }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 40;
  display: none; align-items: flex-start; justify-content: center;
  padding: 48px 20px; overflow-y: auto;
}
.modal-backdrop.show { display: flex; }
.modal {
  background: var(--white); width: 100%; max-width: 560px;
  border-top: 4px solid var(--blue-500); border-radius: var(--radius-card);
  box-shadow: 0 24px 60px rgba(0,0,0,0.2);
}
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 24px 28px 8px; }
.modal-head h2 { font-size: 22px; font-weight: 700; color: var(--grey-000); }
.modal-close { background: none; border: none; cursor: pointer; color: var(--grey-300); padding: 4px; }
.modal-close svg { width: 22px; height: 22px; }
.modal-body { padding: 8px 28px; }
.modal-foot { padding: 16px 28px 26px; display: flex; gap: 12px; justify-content: flex-end; }

/* DGS disclaimer block */
.dgs-block {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--success-800); border: 1px solid var(--blue-700);
  border-radius: var(--radius-input); padding: 14px 16px; margin-top: 12px;
  font-size: 13px; line-height: 20px; color: var(--grey-100);
}
.dgs-block svg { width: 20px; height: 20px; color: var(--blue-500); flex: none; margin-top: 1px; }

/* Document upload zone */
.upload-zone {
  border: 2px dashed var(--grey-700); border-radius: var(--radius-input);
  background: var(--grey-900); padding: 28px; text-align: center; cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--blue-500); background: var(--blue-800); }
.upload-zone svg { width: 32px; height: 32px; color: var(--grey-600); margin-bottom: 10px; }
.upload-zone p { font-size: 14px; color: var(--grey-300); }
.upload-zone strong { color: var(--blue-500); }
.upload-zone input[type=file] { display: none; }

/* Profile panel */
.profile-form { display: flex; flex-direction: column; gap: 20px; }
.profile-notice {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 16px; background: var(--blue-800); border: 1px solid var(--blue-700);
  border-radius: var(--radius-input); font-size: 14px; line-height: 1.55;
}
.profile-notice svg { flex: none; width: 20px; height: 20px; color: var(--blue-500); margin-top: 1px; }

/* Btn icon helper */
.btn-icon { display: flex; align-items: center; gap: 8px; }
.btn-icon svg { width: 16px; height: 16px; flex: none; }

/* ============================================================
   Responsive / mobile
   ============================================================ */
@media (max-width: 900px) {
  .admin-layout { grid-template-columns: 1fr; gap: 16px; }
  .admin-side { position: static; }
}

@media (max-width: 640px) {
  .portal-wrap { padding: 0 16px; }
  .header-inner { height: auto; min-height: 56px; padding: 9px 14px; gap: 8px; flex-wrap: wrap; }
  .header-right { gap: 8px; }
  .header-nav a { padding: 7px 9px; font-size: 13px; }
  .header-user { display: none; }
  .btn-exit { padding: 7px 12px; letter-spacing: 1px; font-size: 12px; }
  .portal-topbar { padding: 24px 0 76px; }
  .portal-topbar h1 { font-size: 24px; }
  .portal-body { margin-top: -60px; }
  .summary-card { flex-direction: column; align-items: stretch; gap: 18px; padding: 20px; }
  .summary-divider { display: none; }
  .summary-metric { padding-bottom: 18px; border-bottom: 1px solid var(--grey-850); }
  .summary-metric:last-of-type { border-bottom: none; padding-bottom: 0; }
  .summary-metric .value { font-size: 30px; }
  .summary-actions { margin-left: 0; flex-direction: column; }
  .summary-actions .btn { width: 100%; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 2px; margin: 28px 0 14px; }
  .rate-grid { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .pc-foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .pc-foot .btn { width: 100%; }
  .login-main { padding: 32px 16px 56px; }
  .login-heading { font-size: 22px; line-height: 30px; }
  .login-pitch .benefit-grid { grid-template-columns: 1fr; }
  .btn--login { width: 100%; }
  .logo-lg { height: 34px !important; }
  .fund-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .fund-row .fr-right { width: 100%; justify-content: space-between; }
  .fund-note { margin: 14px 16px 18px; }
  .fund-protect { margin: 0 16px 18px; }
  .fund-head, .fund-body { padding-left: 18px; padding-right: 18px; }
  .modal-backdrop { padding: 0; align-items: flex-end; }
  .modal { max-width: 100%; border-radius: var(--radius-card) var(--radius-card) 0 0; }
  .modal-head { padding: 20px 20px 6px; }
  .modal-body { padding: 6px 20px; }
  .modal-foot { padding: 14px 20px 22px; flex-wrap: wrap; }
  .modal-foot .btn { flex: 1; min-width: 120px; }
  .panel-card { padding: 20px; }
  .admin-product .ap-head { flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .status-timeline { flex-direction: column; gap: 0; }
  .st-step::before { display: none; }
}

@media (max-width: 400px) {
  .rate-grid { grid-template-columns: 1fr; }
  .portal-topbar h1 { font-size: 22px; }
  .summary-metric .value { font-size: 26px; }
}
