:root {
  --navy: #092550;
  --green: #16a34a;
  --lime: #b7ef00;
  --red: #df1f2d;
  --ink: #10233f;
  --muted: #66758b;
  --line: #dce4ec;
  --paper: #fff;
  --wash: #f4f7f9;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--wash); font-family: Inter, Arial, sans-serif; }
button, input, select { font: inherit; }
.eyebrow { margin: 0 0 8px; color: var(--green); font-size: 11px; font-weight: 900; letter-spacing: .14em; }

.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); }
.login-brand { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 8vw, 130px); color: #fff; background: linear-gradient(145deg, #061a3c, #0d3f72 60%, #12843f); }
.login-brand img { width: min(340px, 76%); margin-bottom: 64px; }
.login-brand h1 { max-width: 660px; margin: 12px 0 22px; font-size: clamp(40px, 5vw, 76px); line-height: .98; letter-spacing: -.055em; }
.login-brand p { max-width: 620px; color: #d9e6f2; font-size: 17px; line-height: 1.65; }
.login-card { align-self: center; margin: 40px; padding: clamp(28px, 5vw, 64px); border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 30px 70px rgba(9,37,80,.12); }
.login-card h2 { margin: 0 0 12px; font-size: 34px; }
.login-card > p { color: var(--muted); line-height: 1.6; }
.login-card form { display: grid; gap: 18px; margin: 32px 0; }
label span { display: block; margin-bottom: 7px; font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
input { width: 100%; padding: 15px 16px; border: 1px solid #cbd5df; border-radius: 10px; color: var(--ink); background: #fbfcfd; }
input:focus { border-color: var(--green); outline: 3px solid rgba(22,163,74,.15); }
button { border: 0; border-radius: 999px; padding: 14px 24px; color: #06152e; background: var(--lime); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.message { padding: 14px; border-left: 3px solid var(--red); color: #9b1c25; background: #fff0f1; }
.sandbox-copy { padding: 14px; border: 1px solid #efd597; border-radius: 10px; background: #fff9e9; font-size: 12px; }

.member-shell { min-height: 100vh; }
.portal-page-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px clamp(18px, 3vw, 46px); border-top: 1px solid var(--line); color: var(--muted); background: rgba(255,255,255,.88); font-size: 12px; }
.portal-page-footer a { color: var(--green); font-weight: 800; text-decoration: none; }
@media (max-width: 720px) { .portal-page-footer { align-items: flex-start; flex-direction: column; } }
.member-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; flex-direction: column; width: 280px; color: #fff; background: linear-gradient(180deg, #061a3c, #092b54 68%, #0c5136); box-shadow: 14px 0 40px rgba(4,20,44,.18); }
.member-sidebar__brand { display: flex; align-items: center; justify-content: space-between; padding: 28px 24px 22px; border-bottom: 1px solid rgba(255,255,255,.12); }
.member-sidebar__brand img { display: block; width: 178px; }
.sidebar-close { display: none; padding: 6px; color: #fff; background: transparent; font-size: 28px; line-height: 1; }
.member-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; margin: 22px 18px; padding: 15px; border: 1px solid rgba(255,255,255,.13); border-radius: 14px; background: rgba(255,255,255,.07); }
.member-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #061a3c; background: var(--lime); font-weight: 900; }
.member-card strong, .member-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-card small { margin-top: 4px; color: #b9cbe0; font-size: 10px; }
.member-nav {
  display: grid;
  gap: 4px;
  min-height: 0;
  padding: 0 14px 18px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.25) transparent;
}
.member-nav a { display: grid; grid-template-columns: 32px 1fr; gap: 8px; align-items: center; padding: 13px 14px; border-radius: 10px; color: #d9e6f2; text-decoration: none; font-size: 13px; font-weight: 750; }
.member-nav a span { color: #7fa0c3; font: 600 10px "SFMono-Regular", Consolas, monospace; }
.member-nav a:hover, .member-nav a.is-active { color: #fff; background: rgba(183,239,0,.13); }
.member-nav a.is-active span { color: var(--lime); }
.member-sidebar__foot { margin-top: auto; padding: 22px 24px 26px; border-top: 1px solid rgba(255,255,255,.12); }
.member-sidebar__foot p { margin: 0 0 5px; color: var(--lime); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.member-sidebar__foot small { display: block; color: #b9cbe0; line-height: 1.5; }
.member-sidebar__foot button { width: 100%; margin-top: 16px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.25); color: #fff; background: transparent; font-size: 9px; }
.member-workspace { min-width: 0; margin-left: 280px; }
.portal-header { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; min-height: 74px; padding: 12px clamp(18px, 3vw, 46px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
.portal-header > div { display: flex; align-items: center; gap: 16px; }
.portal-header .eyebrow { margin: 0 0 3px; }
.portal-header > div:first-of-type { display: block; }
.portal-header button { padding: 9px 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 10px; }
.menu-button { display: none; min-width: 40px; padding: 8px !important; font-size: 18px !important; }
.portal-main { width: 100%; padding: clamp(22px, 3vw, 48px); }
.portal-section { scroll-margin-top: 94px; }
.portal-hero { display: flex; justify-content: space-between; gap: 20px; align-items: end; padding: clamp(28px, 5vw, 70px); border-radius: 24px; color: #fff; background: linear-gradient(130deg, #082551, #0a4774 55%, #13833f); }
.portal-hero h1 { margin: 0 0 12px; font-size: clamp(38px, 5vw, 72px); letter-spacing: -.045em; }
.portal-hero p:not(.eyebrow) { max-width: 760px; color: #d9e6f2; }
.portal-hero > span { white-space: nowrap; padding: 9px 13px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.api-recovery { margin-top: 18px; padding: 18px 20px; border: 1px solid #f1c2c7; border-left: 4px solid var(--red); border-radius: 12px; color: #8d2029; background: #fff1f2; }
.api-recovery p { margin: 6px 0 14px; }
.api-recovery button { padding: 9px 15px; font-size: 9px; }
.balance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin: 20px 0; }
.balance-card { position: relative; overflow: hidden; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 15px 35px rgba(16,35,63,.06); }
.balance-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: linear-gradient(var(--red), var(--green)); }
.balance-card span { display: block; color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.balance-card strong { display: block; margin-top: 14px; font-size: 30px; overflow-wrap: anywhere; }
.portal-panel { margin-top: 20px; padding: clamp(18px, 3vw, 34px); border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 15px 35px rgba(16,35,63,.05); }
.panel-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.panel-head h2 { margin: 0; font-size: 27px; }
.panel-head > strong { color: var(--green); font-size: 28px; }
.section-state {
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid #cfd9e3;
  border-radius: 999px;
  color: #465a70;
  background: #f6f8fa;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  white-space: nowrap;
}
.section-copy { max-width: 920px; margin: 0; color: var(--muted); line-height: 1.7; }
.compact-panel { min-height: 190px; }
.holding-grid, .profile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.holding-grid > article, .profile-grid > div {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--wash);
}
.holding-grid span, .profile-grid span {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.holding-grid strong, .profile-grid strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 18px;
}
.security-grid { display: grid; grid-template-columns: minmax(280px, .75fr) minmax(420px, 1.25fr); gap: 18px; margin-top: 20px; }
.security-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.security-card h3 { margin: 3px 0 16px; font-size: 19px; }
.security-card label { display: block; margin-bottom: 13px; }
.security-card label span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 11px; font-weight: 800; }
.security-card input { width: 100%; box-sizing: border-box; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; font: inherit; }
.security-card input:focus { outline: 3px solid rgba(30, 112, 87, .15); border-color: var(--green); }
.security-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.security-heading button, .security-table button { padding: 7px 10px; font-size: 9px; }
.security-table { margin-top: 14px; }
.security-table table { min-width: 560px; }
.security-message { margin: 12px 0 0; color: var(--green); line-height: 1.5; }
.security-message[data-error="true"] { color: #91252f; }
.transaction-security-notice { display: flex; gap: 14px; align-items: center; margin: 0 0 18px; padding: 12px 16px; border: 1px solid #dbe8be; border-radius: 12px; background: #f7fbef; color: #43532f; line-height: 1.4; }
.transaction-security-notice::before { content: "!"; display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; background: #dff3a4; color: #315a00; font-weight: 900; }
.transaction-security-notice strong { color: #1f3211; }
.transaction-security-notice a { margin-left: auto; color: #315a00; font-weight: 800; text-decoration: none; white-space: nowrap; }
.transaction-security-notice a:hover { text-decoration: underline; }
@media (max-width: 720px) { .transaction-security-notice { display: block; } .transaction-security-notice span { display: block; margin: 3px 0 8px; } .transaction-security-notice a { margin-left: 0; } }
.transaction-password-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; }
.transaction-password-modal__backdrop { position: absolute; inset: 0; background: rgba(8, 22, 42, .62); backdrop-filter: blur(3px); }
.transaction-password-modal__panel { position: relative; width: min(100%, 440px); padding: 34px; border: 1px solid #dbe8be; border-radius: 18px; background: #fff; box-shadow: 0 24px 70px rgba(8, 22, 42, .28); }
.transaction-password-modal__close { position: absolute; top: 14px; right: 16px; border: 0; background: transparent; color: #68758c; font-size: 25px; line-height: 1; cursor: pointer; }
.transaction-password-modal__icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 18px; border-radius: 50%; background: #e7f6b9; font-size: 20px; }
.transaction-password-modal__panel h2 { margin: 5px 0 9px; color: #15233d; font-size: 25px; line-height: 1.2; }
.transaction-password-modal__copy { margin: 0 0 22px; color: #66758f; line-height: 1.6; }
.transaction-password-modal__field { display: block; margin-bottom: 12px; }
.transaction-password-modal__field span { display: block; margin-bottom: 7px; color: #66758f; font-size: 12px; font-weight: 800; }
.transaction-password-modal__field input { width: 100%; min-height: 46px; box-sizing: border-box; padding: 0 13px; border: 1px solid #d8e0ea; border-radius: 10px; font: inherit; }
.transaction-password-modal__field input:focus { outline: 3px solid rgba(169, 237, 0, .2); border-color: #9ccf24; }
.transaction-password-modal__primary { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 46px; box-sizing: border-box; border: 0; border-radius: 10px; background: #a9ed00; color: #15233d; font-weight: 900; text-decoration: none; cursor: pointer; }
.transaction-password-modal__primary[aria-busy="true"] { opacity: .65; cursor: wait; }
.transaction-button-spinner { display: inline-block; width: 15px; height: 15px; margin-left: 10px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -3px; animation: transaction-spinner .7s linear infinite; }
.ops-submit[disabled], .ops-submit[aria-busy="true"] { pointer-events: none; opacity: .68; cursor: wait; }
@keyframes transaction-spinner { to { transform: rotate(360deg); } }
.transaction-password-modal__secondary { display: block; margin: 13px auto 0; border: 0; background: transparent; color: #66758f; font-weight: 700; cursor: pointer; }
.transaction-password-modal__error { margin: 8px 0; color: #91252f; font-size: 13px; }
.downline-purchase-confirmation__summary { display: grid; gap: 0; margin: 0 0 20px; border: 1px solid #dce5eb; border-radius: 12px; background: #f7fafb; }
.downline-purchase-confirmation__summary > div { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 12px; padding: 11px 13px; border-bottom: 1px solid #e3e9ee; }
.downline-purchase-confirmation__summary > div:last-child { border-bottom: 0; }
.downline-purchase-confirmation__summary dt { color: #68758c; font-size: 10px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.downline-purchase-confirmation__summary dd { margin: 0; color: #15233d; font-size: 13px; font-weight: 850; overflow-wrap: anywhere; }
.downline-purchase-confirmation__summary dd small { color: #68758c; font-weight: 750; }
@media (max-width: 520px) { .transaction-password-modal__panel { padding: 28px 22px; } }
.wallet-payment-progress { position: fixed; inset: 0; z-index: 990; display: grid; place-items: center; padding: 20px; }
.wallet-payment-progress__backdrop { position: absolute; inset: 0; background: rgba(8,22,42,.7); backdrop-filter: blur(4px); }
.wallet-payment-progress__panel { position: relative; width: min(100%, 410px); max-height: calc(100vh - 32px); overflow-y: auto; box-sizing: border-box; padding: 20px; border: 1px solid #dbe8be; border-radius: 17px; background: #fff; box-shadow: 0 28px 80px rgba(8,22,42,.34); }
.wallet-payment-progress__header { display: flex; align-items: center; gap: 13px; }
.wallet-payment-progress__brand { display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 46px; border-radius: 14px; color: #17843b; background: #f3f8ed; font-weight: 950; }
.wallet-payment-progress__header p { margin: 0 0 3px; color: #239243; font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.wallet-payment-progress__header h2 { margin: 0; color: #15233d; font-size: 24px; }
.wallet-payment-progress__wallet { margin: 12px 0 -7px; color: #4f627c; font-size: 11px; font-weight: 800; }
.wallet-payment-progress__status { margin: 16px 0 12px; padding: 10px 12px; border-radius: 10px; color: #28415f; background: #f2f6fa; font-size: 12px; font-weight: 750; line-height: 1.4; }
.wallet-payment-progress__status[hidden] { display: none; }
.wallet-payment-progress[data-state="error"] .wallet-payment-progress__status { color: #922d35; background: #fff0f1; }
.wallet-payment-progress[data-state="complete"] .wallet-payment-progress__status { color: #226633; background: #eff9e9; }
.wallet-payment-progress__steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.wallet-payment-progress__steps li { position: relative; display: grid; grid-template-columns: 27px 1fr; align-items: center; gap: 9px; min-height: 34px; color: #8793a4; font-size: 11px; font-weight: 700; }
.wallet-payment-progress__steps li[hidden] { display: none; }
.wallet-payment-progress__steps li:not(:last-child)::after { content: ""; position: absolute; top: 29px; bottom: -10px; left: 14px; width: 2px; background: #e2e8ef; }
.wallet-payment-progress__marker { position: relative; z-index: 1; display: grid; place-items: center; width: 25px; height: 25px; box-sizing: border-box; border: 2px solid #dce3ea; border-radius: 50%; background: #fff; font-size: 9px; font-weight: 900; }
.wallet-payment-progress__steps li[data-state="done"] { color: #286a38; }
.wallet-payment-progress__steps li[data-state="done"] .wallet-payment-progress__marker { border-color: #76b947; color: #fff; background: #76b947; }
.wallet-payment-progress__steps li[data-state="done"]::after { background: #9dcb78; }
.wallet-payment-progress__steps li[data-state="active"] { color: #15233d; }
.wallet-payment-progress__steps li[data-state="active"] .wallet-payment-progress__marker { border-color: #a9ed00; border-right-color: #315a00; color: transparent; animation: transaction-spinner .75s linear infinite; }
.wallet-payment-progress__steps li[data-state="error"] { color: #922d35; }
.wallet-payment-progress__steps li[data-state="error"] .wallet-payment-progress__marker { border-color: #d8535c; color: #fff; background: #d8535c; }
.wallet-payment-progress__note { display: block; margin: 10px 0 12px; padding: 8px 10px; border: 1px solid #f0d790; border-radius: 9px; color: #6e5514; background: #fff9e8; font-size: 10px; line-height: 1.4; }
.wallet-payment-progress__note strong { color: #5c4509; }
.wallet-payment-progress[data-state="complete"] .wallet-payment-progress__note { border-color: #b9dea8; color: #286a38; background: #eff9e9; }
.wallet-payment-progress[data-state="complete"] .wallet-payment-progress__note strong { color: #226633; }
.wallet-payment-confirmations { margin: 0 0 12px; padding: 11px; border: 1px solid #b9dea8; border-radius: 11px; background: linear-gradient(145deg,#f4fbea,#edf8e8); color: #285d34; }
.wallet-payment-confirmations[hidden] { display: none; }
.wallet-payment-confirmations__submitted { display: flex; align-items: center; gap: 10px; }
.wallet-payment-confirmations__badge { position: relative; width: 29px; height: 29px; flex: 0 0 29px; perspective: 90px; }
.wallet-payment-confirmations__coin,.wallet-payment-confirmations__check { position: absolute; inset: 0; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; color: #fff; backface-visibility: hidden; box-shadow: 0 2px 7px rgba(38,161,123,.24); font-weight: 950; line-height: 1; transition: transform .55s ease, opacity .55s ease; }
.wallet-payment-confirmations__coin { background: #26a17b; font-size: 17px; transform: rotateY(0); opacity: 1; }
.wallet-payment-confirmations__check { background: #65ae3d; font-size: 14px; transform: rotateY(-180deg); opacity: 0; }
.wallet-payment-confirmations[data-submitted="true"] .wallet-payment-confirmations__coin { transform: rotateY(180deg); opacity: 0; }
.wallet-payment-confirmations[data-submitted="true"] .wallet-payment-confirmations__check { transform: rotateY(0); opacity: 1; }
.wallet-payment-confirmations__submitted strong,.wallet-payment-confirmations__submitted small { display: block; }
.wallet-payment-confirmations__submitted strong { color: #226633; font-size: 13px; }
.wallet-payment-confirmations__submitted small { margin-top: 2px; color: #65806c; font-size: 10px; }
.wallet-payment-confirmations__head { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; color: #46664d; font-size: 11px; font-weight: 750; }
.wallet-payment-confirmations__head strong { color: #226633; font-size: 12px; }
.wallet-payment-confirmations__track { display: flex; gap: 8px; margin-top: 9px; }
.wallet-payment-confirmations__track span { display: grid; place-items: center; width: 27px; height: 27px; border: 2px solid #c9d9c5; border-radius: 50%; color: #789078; background: #fff; font-size: 10px; font-weight: 900; }
.wallet-payment-confirmations__track span[data-complete="true"] { border-color: #65ae3d; color: #fff; background: #65ae3d; animation: blockchain-confirmation-pop .3s ease-out; }
.wallet-payment-confirmations__track span[data-current="true"] { border-right-color: #65ae3d; animation: transaction-spinner .8s linear infinite; }
.wallet-payment-confirmations > p { margin: 10px 0 0; color: #58715d; font-size: 11px; line-height: 1.45; }
.wallet-payment-confirmations[data-complete="true"] { border-color: #8ac96a; background: #eaf8e3; }
@keyframes blockchain-confirmation-pop { from { transform: scale(.72); } to { transform: scale(1); } }
.wallet-payment-progress__prechecks { display: none; align-items: center; gap: 8px; margin: 0 0 8px; color: #286a38; font-size: 11px; font-weight: 800; }
.wallet-payment-progress__prechecks span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; background: #76b947; }
.wallet-payment-progress[data-phase="confirmations"] .wallet-payment-progress__status { display: none; }
.wallet-payment-progress[data-phase="confirmations"][data-state="error"] .wallet-payment-progress__status { display: block; }
.wallet-payment-progress[data-phase="confirmations"] .wallet-payment-progress__prechecks { display: flex; }
.wallet-payment-progress[data-phase="confirmations"] .wallet-payment-progress__steps li:not(:last-child) { display: none; }
.wallet-payment-progress[data-phase="confirmations"] .wallet-payment-progress__steps li:last-child { min-height: 32px; }
.wallet-payment-progress[data-phase="confirmations"] .wallet-payment-progress__steps li:last-child::after { display: none; }
.wallet-payment-progress__close { width: 100%; min-height: 44px; margin-top: 16px; border: 0; border-radius: 10px; color: #15233d; background: #a9ed00; font: inherit; font-weight: 900; cursor: pointer; }
@media (max-width: 520px) { .wallet-payment-progress { padding: 10px; } .wallet-payment-progress__panel { max-height: calc(100vh - 20px); padding: 19px 16px; border-radius: 16px; } .wallet-payment-progress__header h2 { font-size: 21px; } .wallet-payment-confirmations { padding: 12px; } }
.operations-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 20px 0; }
.security-card select { width: 100%; box-sizing: border-box; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font: inherit; }
.operations-history { margin-top: 18px; }
.auth-check { display: flex !important; align-items: flex-start; gap: 9px; }
.auth-check input { width: auto !important; margin-top: 4px; }
.login-card label small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.income-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.income-summary > div { padding: 16px; border-radius: 12px; background: var(--wash); }
.income-summary span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11px; }
#portal-team-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.team-level-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 0 0 18px; }
.team-level-grid article { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--wash); }
.team-level-grid span, .team-level-grid small { display: block; color: var(--muted); font-size: 10px; }
.team-level-grid strong { display: block; margin: 7px 0; font-size: 19px; overflow-wrap: anywhere; }
.qualification-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.qualification-grid article { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--wash); }
.qualification-grid article > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qualification-grid span, .qualification-grid small { color: var(--muted); font-size: 11px; }
.qualification-grid p { min-height: 44px; color: var(--muted); line-height: 1.55; }
.progress-track { height: 9px; margin-top: 16px; overflow: hidden; border-radius: 99px; background: #dce4ec; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), var(--lime)); }
.income-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.income-actions select { max-width: 190px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: #fff; }
.income-actions button { padding: 9px 14px; font-size: 9px; }
.income-actions strong { color: var(--green); font-size: 24px; }
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; min-width: 880px; border-collapse: collapse; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: #45556a; background: #eef3f7; font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }
td { font-size: 13px; }
td strong, td small { display: block; }
td small { margin-top: 4px; color: var(--muted); }
.status { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: #e9edf0; font-size: 9px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.status[data-status="POSTED"], .status[data-status="ACTIVE"] { color: #396100; background: #e8f6d0; }
.status[data-status="REVERSED"] { color: #91252f; background: #ffe3e6; }
.status[data-status="APPROVED"] { color: #185b8f; background: #e6f3ff; }
.status[data-status="PENDING_APPROVAL"], .status[data-status="SCHEDULED"] { color: #805200; background: #fff1ce; }

/* Six-wallet affiliate dashboard */
.affiliate-wallet-experience { overflow: hidden; padding: 0; border-radius: 26px; background: #f7f9f5; }
.wallet-head { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr); gap: 28px; align-items: end; padding: clamp(28px, 4vw, 54px); color: #fff; background: radial-gradient(circle at 88% 12%, rgba(183,239,0,.2), transparent 28%), linear-gradient(135deg, #061a3c, #0b3861 58%, #0b6743); }
.wallet-head h2 { max-width: 780px; margin: 0; font-size: clamp(36px, 4.2vw, 64px); line-height: 1; letter-spacing: -.045em; }
.wallet-head > div:first-child > p:last-child { max-width: 760px; margin: 18px 0 0; color: #cbdbe8; line-height: 1.7; }
.wallet-rate { padding: 22px; border: 1px solid rgba(255,255,255,.18); border-radius: 18px; background: rgba(255,255,255,.08); backdrop-filter: blur(8px); }
.wallet-rate span, .wallet-rate strong, .wallet-rate small { display: block; }.wallet-rate span { color: var(--lime); font-size: 9px; font-weight: 900; letter-spacing: .13em; }.wallet-rate strong { margin: 12px 0 7px; font-size: 24px; }.wallet-rate small { color: #bcd0df; }
.affiliate-wallet-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: clamp(22px, 3vw, 38px); }
.affiliate-wallet-card { --wallet-tone: #1f66bc; position: relative; min-height: 220px; overflow: hidden; padding: 24px; border: 1px solid color-mix(in srgb, var(--wallet-tone) 28%, #dbe4ec); border-radius: 19px; background: linear-gradient(145deg, #fff 48%, color-mix(in srgb, var(--wallet-tone) 10%, #fff)); box-shadow: 0 16px 34px rgba(8,30,55,.07); }
.affiliate-wallet-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--wallet-tone); }.affiliate-wallet-card::after { content: ""; position: absolute; width: 105px; height: 105px; right: -35px; bottom: -38px; border: 18px solid color-mix(in srgb, var(--wallet-tone) 10%, transparent); border-radius: 50%; }
.affiliate-wallet-card[data-wallet="AKCELPE"] { --wallet-tone: #d62431; }.affiliate-wallet-card[data-wallet="AKT"] { --wallet-tone: #13813d; }.affiliate-wallet-card[data-wallet="AKT_RELEASE"] { --wallet-tone: #2568c2; }.affiliate-wallet-card[data-wallet="AKT_STAKING"] { --wallet-tone: #6f45cb; }.affiliate-wallet-card[data-wallet="IC"] { --wallet-tone: #b56900; }.affiliate-wallet-card[data-wallet="AKCELPE_CARD"] { --wallet-tone: #087f8c; }
.wallet-card-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }.wallet-card-icon { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid color-mix(in srgb, var(--wallet-tone) 25%, #fff); border-radius: 13px; color: var(--wallet-tone); background: #fff; font-size: 13px; font-weight: 950; }.wallet-card-top span { color: #68798b; font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.affiliate-wallet-card h3 { position: relative; z-index: 1; margin: 19px 0 5px; color: #0a2643; font-size: 20px; }.affiliate-wallet-card > strong { position: relative; z-index: 1; display: block; color: #071e38; font-size: clamp(27px, 2.5vw, 38px); letter-spacing: -.035em; overflow-wrap: anywhere; }.affiliate-wallet-card > p { position: relative; z-index: 1; margin: 14px 0 0; color: #6a7989; font-size: 11px; line-height: 1.55; }
.wallet-action-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px, .55fr); gap: 18px; padding: 0 clamp(22px, 3vw, 38px) clamp(22px, 3vw, 38px); }.wallet-transfer-card, .wallet-rules-card { padding: 25px; border: 1px solid #d9e2e8; border-radius: 19px; background: #fff; }.wallet-transfer-card h3, .wallet-rules-card h3 { margin: 0 0 7px; font-size: 24px; }.wallet-transfer-card > div:first-child > p:last-child { color: var(--muted); }
.wallet-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin: 22px 0 14px; }.wallet-form-grid label span { color: #607286; }.wallet-form-grid select, .wallet-form-grid input { width: 100%; padding: 12px 13px; border: 1px solid #cfdae4; border-radius: 10px; background: #fbfcfd; }.wallet-form-grid select:focus, .wallet-form-grid input:focus { border-color: var(--green); outline: 3px solid rgba(22,163,74,.13); }.wallet-reason { grid-column: 1 / -1; }
.wallet-transfer-summary { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; margin-bottom: 18px; padding: 15px 17px; border-radius: 12px; color: #17344f; background: #eef5e0; }.wallet-transfer-summary span, .wallet-transfer-summary small { color: #61717d; font-size: 10px; }.wallet-transfer-summary strong { text-align: right; }.wallet-transfer-summary small { grid-column: 1 / -1; }.wallet-rules-card { background: linear-gradient(155deg, #061c39, #0a3d5b 70%, #0b6041); color: #fff; }.wallet-rules-card h3 { color: #fff; }.wallet-rules-card ol { display: grid; gap: 0; margin: 18px 0 0; padding: 0; list-style: none; counter-reset: wallet-rule; }.wallet-rules-card li { position: relative; display: grid;  gap: 10px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.12); counter-increment: wallet-rule; }.wallet-rules-card li::before { content: counter(wallet-rule); display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; color: #071c35; background: var(--lime); font-size: 10px; font-weight: 950; }.wallet-rules-card li strong, .wallet-rules-card li span { display: block; }.wallet-rules-card li span { margin-top: 4px; color: #bcd0df; font-size: 11px; line-height: 1.5; }
.wallet-history-head { margin: 0; padding: 0 clamp(22px, 3vw, 38px) 15px; }.wallet-history-head h3 { margin: 0; font-size: 23px; }.wallet-history-head button { padding: 9px 14px; font-size: 9px; }.affiliate-wallet-experience > .table-wrap { width: auto; margin: 0 clamp(22px, 3vw, 38px); }.wallet-disclosure { margin: 22px 0 0; padding: 16px clamp(22px, 3vw, 38px); color: #d4dfeb; background: #061a35; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-align: center; }

/* IC Wallet external withdrawal */
.ic-withdrawal-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding: clamp(28px, 4vw, 50px); color: #fff; background: radial-gradient(circle at 88% 5%, rgba(183,239,0,.22), transparent 27%), linear-gradient(135deg, #061a3c, #0b3861 58%, #0b6743); }
.ic-withdrawal-hero .eyebrow { margin: 0 0 11px; color: var(--lime); }
.ic-withdrawal-hero h1 { margin: 0; color: #fff; font-size: clamp(36px, 4.2vw, 58px); line-height: 1; letter-spacing: -.045em; }
.ic-withdrawal-hero p:not(.eyebrow) { max-width: 720px; margin: 17px 0 0; color: #cbdbe8; line-height: 1.65; }
.ic-withdrawal-hero__badge { flex: 0 0 auto; padding: 10px 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: #fff; background: rgba(255,255,255,.09); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.ic-withdrawal-balances .affiliate-wallet-card { min-height: 160px; }
.icw-status { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 900; letter-spacing: .02em; }
.icw-status[data-tone="paid"] { color: #17722f; background: #e3f6e0; }
.icw-status[data-tone="pending"] { color: #8a5a00; background: #fff2d9; }
.icw-status[data-tone="stopped"] { color: #91252f; background: #fde9eb; }
.ic-withdrawal-balances .affiliate-wallet-card > span { position: relative; z-index: 1; color: #5c6f83; font-size: 10px; font-weight: 900; letter-spacing: .11em; }
.ic-withdrawal-card--reserved { --wallet-tone: #69798c; }
.ic-withdrawal-card--spendable { --wallet-tone: #13813d; }
#ic-withdrawal > .wallet-transfer-card { margin: 0 clamp(22px, 3vw, 38px) clamp(22px, 3vw, 38px); }
.ic-withdrawal-form-head h2 { margin: 5px 0 7px; color: #0a2643; font-size: 25px; }
.ic-withdrawal-form-head > p:last-child { margin: 0; color: var(--muted); }
.ic-withdrawal-confirmation { width: min(560px, calc(100% - 28px)); max-height: calc(100vh - 28px); padding: 0; overflow-y: auto; border: 1px solid #d5dee8; border-radius: 22px; color: var(--ink); background: #fff; box-shadow: 0 30px 90px rgba(4,20,44,.3); }
.ic-withdrawal-confirmation::backdrop { background: rgba(3,17,39,.66); backdrop-filter: blur(4px); }
.ic-withdrawal-confirmation__head { display: grid; grid-template-columns: 46px minmax(0,1fr) 38px; gap: 14px; align-items: center; padding: 25px 26px 20px; border-bottom: 1px solid #e2e8ee; background: linear-gradient(180deg,#fffdf8,#fff8e8); }
.ic-withdrawal-confirmation__head > span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: #7d4c00; background: #ffdfa1; font-size: 23px; font-weight: 950; }
.ic-withdrawal-confirmation__head .eyebrow { margin: 0 0 4px; color: #a05c00; }
.ic-withdrawal-confirmation__head h2 { margin: 0; font-size: 25px; }
.ic-withdrawal-confirmation__head button { width: 38px; height: 38px; padding: 0; border: 1px solid #d6dee6; color: #526174; background: #fff; font-size: 23px; line-height: 1; }
.ic-withdrawal-confirmation__copy { margin: 0; padding: 22px 26px 14px; color: var(--muted); line-height: 1.55; }
.ic-withdrawal-confirmation__summary { margin: 0 26px 18px; border: 1px solid #dbe3ea; border-radius: 13px; background: #f7fafb; }
.ic-withdrawal-confirmation__summary > div { display: grid; grid-template-columns: 105px minmax(0,1fr); gap: 14px; padding: 11px 14px; border-bottom: 1px solid #e1e7ec; }
.ic-withdrawal-confirmation__summary > div:last-child { border-bottom: 0; }
.ic-withdrawal-confirmation__summary dt { color: #6b7889; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.ic-withdrawal-confirmation__summary dd { margin: 0; color: #132a43; font-size: 13px; font-weight: 850; overflow-wrap: anywhere; }
.ic-withdrawal-confirmation__summary-highlight { background: #eafbe9; }
.ic-withdrawal-confirmation__summary-highlight dt { color: #17722f; }
.ic-withdrawal-confirmation__summary-highlight dd { color: #17722f; font-size: 15px; font-weight: 900; }
.ic-withdrawal-confirmation__warning { margin: 0 26px 18px; padding: 15px 16px; border: 1px solid #f0c66f; border-left: 4px solid #d88900; border-radius: 11px; color: #704500; background: #fff8e7; }
.ic-withdrawal-confirmation__warning strong { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.ic-withdrawal-confirmation__warning p { margin: 6px 0 0; font-size: 12px; line-height: 1.55; }
.ic-withdrawal-confirmation__terms { display: flex; gap: 11px; align-items: flex-start; margin: 0 26px 18px; color: #34485d; font-size: 12px; font-weight: 750; line-height: 1.5; cursor: pointer; }
.ic-withdrawal-confirmation__terms input { width: 18px; height: 18px; flex: 0 0 18px; margin: 1px 0 0; accent-color: var(--green); }
.ic-withdrawal-confirmation__error { margin: 0 26px 16px; padding: 11px 13px; border-radius: 9px; color: #91252f; background: #fff0f1; font-size: 12px; }
.ic-withdrawal-confirmation__actions { display: flex; justify-content: flex-end; gap: 10px; padding: 18px 26px 24px; border-top: 1px solid #e2e8ee; }
.ic-withdrawal-confirmation__actions button { min-width: 145px; padding: 12px 18px; }
.ic-withdrawal-confirmation__actions .ic-withdrawal-confirmation__cancel { border: 1px solid #d1dae3; color: #415469; background: #fff; }
.ic-withdrawal-confirmation__actions button:disabled { opacity: .48; cursor: not-allowed; }

@media (max-width: 850px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-brand { min-height: 42vh; padding: 42px 24px; }
  .login-brand img { width: 220px; margin-bottom: 34px; }
  .login-card { margin: 18px; }
  .member-sidebar { transform: translateX(-105%); transition: transform .25s ease; }
  .member-sidebar.is-open { transform: translateX(0); }
  .member-workspace { margin-left: 0; }
  .sidebar-close, .menu-button { display: block; }
  .sidebar-scrim { position: fixed; inset: 0; z-index: 25; background: rgba(3,14,31,.58); }
  .portal-header > div:first-of-type { display: none; }
  .portal-user > strong { display: none; }
  .portal-hero { align-items: start; flex-direction: column; }
  .income-summary, #portal-team-summary, .holding-grid, .profile-grid, .security-grid, .operations-grid, .wallet-head, .wallet-action-grid { grid-template-columns: 1fr; }
  .affiliate-wallet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ic-withdrawal-hero { align-items: flex-start; flex-direction: column; }
  .panel-head { align-items: flex-start; flex-direction: column; }
  .income-actions { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .portal-main { padding: 14px; }
  .portal-header { padding: 12px 14px; }
  .portal-header img { width: 120px; }
  .portal-panel { padding: 16px; }
  .affiliate-wallet-experience { padding: 0; }
  .affiliate-wallet-grid, .wallet-form-grid { grid-template-columns: 1fr; }
  .ic-withdrawal-hero { padding: 26px 22px; }
  #ic-withdrawal > .wallet-transfer-card { margin: 0 14px 14px; }
  .ic-withdrawal-confirmation__head { grid-template-columns: 40px minmax(0,1fr) 36px; padding: 20px 18px 17px; }
  .ic-withdrawal-confirmation__head > span { width: 40px; height: 40px; }
  .ic-withdrawal-confirmation__copy { padding: 18px 18px 12px; }
  .ic-withdrawal-confirmation__summary, .ic-withdrawal-confirmation__warning, .ic-withdrawal-confirmation__terms, .ic-withdrawal-confirmation__error { margin-left: 18px; margin-right: 18px; }
  .ic-withdrawal-confirmation__actions { flex-direction: column-reverse; padding: 16px 18px 20px; }
  .ic-withdrawal-confirmation__actions button { width: 100%; }
  .wallet-reason { grid-column: auto; }
}

/* Premium compensation-plan experience */
.compensation-experience {
  --plan-night: #06172e;
  --plan-deep: #0a2748;
  --plan-lime: #c8f231;
  --plan-mint: #6ee7b7;
  --plan-gold: #e7c86e;
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid #cdd8e3;
  border-radius: 26px;
  background: #f6f8f3;
  box-shadow: 0 30px 70px rgba(6, 23, 46, .12);
}
.plan-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 36px;
  min-height: 520px;
  padding: clamp(36px, 6vw, 88px);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 78% 30%, rgba(200, 242, 49, .17), transparent 24%),
    radial-gradient(circle at 12% 115%, rgba(31, 187, 112, .22), transparent 42%),
    linear-gradient(132deg, #041225, #092a4b 58%, #073e31);
}
.plan-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .13;
  background-image: linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, #000, transparent 88%);
}
.plan-hero__content { position: relative; z-index: 1; align-self: center; }
.plan-kicker { display: flex; gap: 10px; align-items: center; margin: 0 0 24px; color: #dbe7f3; font-size: 11px; font-weight: 900; letter-spacing: .18em; }
.plan-kicker span { padding: 7px 10px; border-radius: 999px; color: #07182d; background: var(--plan-lime); }
.plan-hero h2 { max-width: 860px; margin: 0; font-size: clamp(42px, 5.3vw, 82px); line-height: .96; letter-spacing: -.055em; }
.plan-hero__content > p:not(.plan-kicker) { max-width: 760px; margin: 28px 0 0; color: #c8d7e7; font-size: clamp(15px, 1.45vw, 20px); line-height: 1.7; }
.plan-hero__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.plan-hero__tags span { min-width: 68px; padding: 9px 14px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; color: #fff; background: rgba(255,255,255,.07); font-size: 11px; font-weight: 900; letter-spacing: .12em; text-align: center; }
.plan-orbit { position: relative; z-index: 1; align-self: center; justify-self: center; display: grid; place-items: center; width: min(330px, 28vw); aspect-ratio: 1; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; box-shadow: inset 0 0 0 34px rgba(255,255,255,.025), 0 0 70px rgba(200,242,49,.08); }
.plan-orbit::before, .plan-orbit::after { content: ""; position: absolute; border: 1px solid rgba(200,242,49,.25); border-radius: 50%; }
.plan-orbit::before { inset: 13%; }
.plan-orbit::after { inset: -11%; border-style: dashed; }
.plan-orbit > div { display: grid; place-items: center; width: 47%; aspect-ratio: 1; border-radius: 50%; color: #07182d; background: linear-gradient(145deg, #d7fa5a, #a9df14); box-shadow: 0 24px 55px rgba(0,0,0,.25); }
.plan-orbit strong { font-size: clamp(54px, 6vw, 86px); line-height: .8; letter-spacing: -.06em; }
.plan-orbit span { margin-top: 8px; font-size: 8px; font-weight: 950; letter-spacing: .14em; }
.plan-orbit i { position: absolute; width: 13px; height: 13px; border: 3px solid #06172e; border-radius: 50%; background: var(--plan-lime); box-shadow: 0 0 0 4px rgba(200,242,49,.15); }
.plan-orbit i:nth-of-type(1) { top: 4%; left: 29%; }.plan-orbit i:nth-of-type(2) { top: 43%; right: -2%; }.plan-orbit i:nth-of-type(3) { bottom: 5%; right: 27%; }.plan-orbit i:nth-of-type(4) { bottom: 26%; left: 1%; }
.plan-stat-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); color: #fff; background: #06172e; }
.plan-stat-strip div { padding: 24px clamp(20px, 3vw, 42px); border-right: 1px solid rgba(255,255,255,.1); }
.plan-stat-strip span, .plan-stat-strip strong { display: block; }
.plan-stat-strip span { margin-bottom: 7px; color: #85a0bc; font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.plan-stat-strip strong { font-size: clamp(15px, 1.5vw, 20px); }
.plan-index { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; margin: 0; background: #d9e1e7; }
.plan-index a { display: flex; gap: 9px; align-items: center; min-height: 68px; padding: 14px 16px; color: #263b50; background: #fff; font-size: 11px; font-weight: 800; text-decoration: none; transition: color .2s ease, background .2s ease; }
.plan-index a:hover { color: #07172c; background: #eff8d4; }
.plan-index span { color: #6c7d8d; font: 700 9px "SFMono-Regular", Consolas, monospace; }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: clamp(22px, 4vw, 52px); }
.plan-card { min-width: 0; scroll-margin-top: 100px; padding: clamp(22px, 3vw, 34px); border: 1px solid #d7e0e7; border-radius: 20px; background: rgba(255,255,255,.92); box-shadow: 0 14px 32px rgba(6,23,46,.055); }
.plan-card--feature, .plan-card--arv, .plan-card--lifestyle { grid-column: 1 / -1; }
.plan-card header { display: flex; align-items: center; gap: 15px; margin-bottom: 22px; }
.plan-card header > div { min-width: 0; flex: 1; }
.plan-card header p { margin: 0 0 4px; color: #668094; font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.plan-card h3 { margin: 0; color: #071c35; font-size: clamp(23px, 2.1vw, 32px); letter-spacing: -.025em; }
.plan-card > p { margin: 0 0 22px; color: #5f7182; font-size: 14px; line-height: 1.75; }
.plan-number { display: grid; flex: 0 0 auto; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: #07182d; background: var(--plan-lime); font: 900 13px "SFMono-Regular", Consolas, monospace; box-shadow: 0 9px 20px rgba(154,198,12,.2); }
.plan-highlight { flex: 0 0 auto; padding: 9px 12px; border: 1px solid #d9e5aa; border-radius: 999px; color: #36520c; background: #f0f8d3; font-size: 10px; letter-spacing: .08em; }
.commission-ladder { display: grid; grid-template-columns: repeat(7, minmax(90px, 1fr)); gap: 8px; }
.commission-ladder div { padding: 17px 14px; border: 1px solid #dbe4e9; border-radius: 14px; background: #f7f9f7; }
.commission-ladder div[data-top="true"] { color: #fff; border-color: #0a3855; background: linear-gradient(145deg, #08223e, #0b5b4a); }
.commission-ladder span, .commission-ladder strong { display: block; }
.commission-ladder span { color: inherit; opacity: .72; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.commission-ladder strong { margin-top: 12px; font-size: 25px; }
.milestone-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.milestone-list div { padding: 18px; border-radius: 15px; background: #eef3f2; }
.milestone-list span, .milestone-list strong, .milestone-list small { display: block; }
.milestone-list span { color: #18704c; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }.milestone-list strong { margin: 10px 0 4px; color: #0d2841; }.milestone-list small { color: #718091; }
.match-flow { display: grid; gap: 9px; }
.match-flow div { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; padding: 13px 15px; border-radius: 12px; background: #f2f5f3; }
.match-flow b { padding: 7px 10px; border-radius: 999px; color: #315004; background: #e3f5ab; font-size: 11px; }
.premium-table { overflow-x: auto; border: 1px solid #dbe3e8; border-radius: 14px; }
.premium-table table { min-width: 100%; }
.premium-table th, .premium-table td { padding: 12px 15px; }
.premium-table th { color: #b9cee1; background: #09233e; }
.premium-table td:last-child { color: #163e32; font-weight: 850; }
.plan-card--arv { color: #fff; border: 0; background: radial-gradient(circle at 90% 20%, rgba(200,242,49,.16), transparent 25%), linear-gradient(140deg, #06182f, #0a3552 62%, #0a4d3b); box-shadow: 0 25px 55px rgba(6,23,46,.2); }
.plan-card--arv h3, .plan-card--arv > p { color: #fff; }.plan-card--arv > p { opacity: .76; }
.plan-card--arv header p { color: #9eb5c9; }.plan-card--arv .plan-highlight { color: #091a2d; border: 0; background: var(--plan-lime); }
.arv-allocation { display: grid; grid-template-columns: repeat(3, minmax(0, .65fr)) minmax(240px, 1.35fr); gap: 10px; margin: 28px 0; }
.arv-allocation > div { padding: 22px; border: 1px solid rgba(255,255,255,.15); border-radius: 16px; background: rgba(255,255,255,.07); }
.arv-allocation span, .arv-allocation strong, .arv-allocation small { display: block; }.arv-allocation span { color: #9fb6c9; font-size: 9px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }.arv-allocation strong { margin-top: 15px; font-size: 30px; }.arv-allocation small { margin-top: 7px; color: #afc2d2; line-height: 1.5; }
.arv-allocation__flex strong { color: var(--plan-lime); font-size: 20px; }
.plan-note { display: grid; grid-template-columns: 170px 1fr; gap: 20px; align-items: start; margin-bottom: 22px; padding: 18px 20px; border-left: 3px solid var(--plan-lime); border-radius: 0 14px 14px 0; background: rgba(255,255,255,.08); }
.plan-note strong { color: var(--plan-lime); }.plan-note p { margin: 0; color: #c8d6e2; line-height: 1.65; }
.benefit-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.benefit-chips span { padding: 9px 11px; border: 1px solid #dbe3e8; border-radius: 999px; color: #385069; background: #f5f7f4; font-size: 10px; font-weight: 800; }
.plan-card--spotlight { color: #fff; border: 0; background: linear-gradient(145deg, #0a253e, #0e5c43); }.plan-card--spotlight h3, .plan-card--spotlight > p { color: #fff; }.plan-card--spotlight > p { opacity: .78; }.plan-card--spotlight header p { color: #a5bdce; }
.club-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 20px 0; }
.club-levels div { padding: 20px; border-radius: 15px; background: #eef4e6; }.club-levels span, .club-levels strong, .club-levels small { display: block; }.club-levels span { color: #61727e; font-size: 10px; }.club-levels strong { margin: 8px 0; color: #0c503a; font-size: 25px; }.club-levels small { color: #74828f; }
.lifestyle-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.lifestyle-grid span { min-height: 62px; display: flex; align-items: center; padding: 13px 14px; border: 1px solid #dbe3e8; border-radius: 13px; color: #203b52; background: #f8faf8; font-size: 11px; font-weight: 800; }
.plan-footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 0 clamp(22px, 4vw, 52px) clamp(22px, 4vw, 52px); }
.plan-footer-grid article { padding: clamp(24px, 3vw, 36px); border: 1px solid #d7e0e7; border-radius: 20px; background: #fff; }
.plan-footer-grid h3 { margin: 0 0 18px; color: #071c35; font-size: 25px; }.plan-footer-grid ul { margin: 0; padding-left: 20px; color: #5f7182; line-height: 1.7; }.plan-footer-grid li + li { margin-top: 8px; }
.plan-disclosure { display: grid; grid-template-columns: 210px 1fr; gap: 24px; padding: 24px clamp(22px, 4vw, 52px); color: #d1dce7; background: #06172e; }
.plan-disclosure strong { color: var(--plan-lime); }.plan-disclosure p { margin: 0; font-size: 12px; line-height: 1.7; }

@media (max-width: 1180px) {
  .plan-index { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .commission-ladder { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .arv-allocation { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .arv-allocation__flex { grid-column: 1 / -1; }
}
@media (max-width: 850px) {
  .plan-hero { grid-template-columns: 1fr; min-height: auto; }
  .plan-orbit { width: min(280px, 70vw); }
  .plan-stat-strip, .plan-grid, .plan-footer-grid { grid-template-columns: 1fr; }
  .plan-stat-strip div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .plan-card--feature, .plan-card--arv, .plan-card--lifestyle { grid-column: auto; }
  .plan-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .commission-ladder, .milestone-list, .club-levels, .lifestyle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arv-allocation { grid-template-columns: 1fr 1fr; }
  .arv-allocation__flex { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .plan-hero { padding: 32px 22px; }
  .plan-hero h2 { font-size: 43px; }
  .plan-index, .commission-ladder, .milestone-list, .club-levels, .lifestyle-grid, .arv-allocation { grid-template-columns: 1fr; }
  .arv-allocation__flex { grid-column: auto; }
  .plan-card header { align-items: flex-start; flex-wrap: wrap; }
  .plan-highlight { margin-left: 67px; }
  .plan-note, .plan-disclosure { grid-template-columns: 1fr; }
}

/* Wallet report tabs keep ledger and CTM calculations visually separate. */
.portal-app[data-portal-page="wallet"] .wallet-report-tabs {
  margin: 30px clamp(22px, 3vw, 38px);
  overflow: hidden;
  border: 1px solid #d8e2ea;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(16,35,63,.06);
}
.portal-app[data-portal-page="wallet"] .wallet-report-tabs__head {
  padding: 22px 24px 16px;
}
.portal-app[data-portal-page="wallet"] .wallet-report-tabs__head h3 {
  margin: 2px 0 6px;
  color: #10233f;
  font-size: 24px;
}
.portal-app[data-portal-page="wallet"] .wallet-report-tabs__head p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}
.portal-app[data-portal-page="wallet"] .wallet-report-tablist {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
  padding: 0 24px 18px;
  border-bottom: 1px solid #e2e9ef;
}
.portal-app[data-portal-page="wallet"] .wallet-report-tablist button {
  display: grid;
  gap: 4px;
  min-height: 68px;
  padding: 13px 16px;
  border: 1px solid #d9e2e9;
  border-radius: 12px;
  color: #52627a;
  background: #f7fafb;
  text-align: left;
}
.portal-app[data-portal-page="wallet"] .wallet-report-tablist button[hidden] {
  display: none;
}
.portal-app[data-portal-page="wallet"] .wallet-report-tablist button strong {
  color: #10233f;
  font-size: 14px;
}
.portal-app[data-portal-page="wallet"] .wallet-report-tablist button span {
  font-size: 11px;
  font-weight: 700;
}
.portal-app[data-portal-page="wallet"] .wallet-report-tablist button.is-active {
  border-color: #178447;
  color: #176b39;
  background: #eaf7ee;
  box-shadow: inset 0 -3px 0 #178447;
}
.portal-app[data-portal-page="wallet"] .wallet-report-panel {
  padding: 24px;
}
.portal-app[data-portal-page="wallet"] .wallet-report-panel[hidden] {
  display: none !important;
}
.portal-app[data-portal-page="wallet"] .wallet-report-panel > .wallet-history-head {
  padding: 0 0 16px;
}
.portal-app[data-portal-page="wallet"] .wallet-report-panel > .wallet-history-head p:not(.eyebrow) {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}
.portal-app[data-portal-page="wallet"] .wallet-report-panel #portal-ctm-report {
  margin: 0;
  padding: 0;
  border-top: 0;
}
@media (max-width: 720px) {
  .portal-app[data-portal-page="wallet"] .wallet-report-tabs {
    margin: 24px 14px;
  }
  .portal-app[data-portal-page="wallet"] .wallet-report-tabs__head,
  .portal-app[data-portal-page="wallet"] .wallet-report-panel {
    padding: 18px 14px;
  }
  .portal-app[data-portal-page="wallet"] .wallet-report-tablist {
    grid-template-columns: 1fr;
    padding: 0 14px 14px;
  }
}

/* Member help centre */
.portal-faq {
  overflow: hidden;
  padding: 0;
  border-radius: 25px;
  background: #f7f9f5;
}
.portal-faq__hero {
  position: relative;
  display: flex;
  gap: 22px;
  align-items: center;
  padding: clamp(28px, 4vw, 48px);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 84% 20%, rgba(200,242,49,.2), transparent 24%),
    linear-gradient(132deg, #06172e, #0a3651 62%, #0b533d);
}
.portal-faq__hero::after {
  content: "FAQ";
  position: absolute;
  right: 3%;
  color: rgba(255,255,255,.055);
  font-size: clamp(80px, 12vw, 180px);
  font-weight: 950;
  letter-spacing: -.08em;
}
.portal-faq__hero > * { position: relative; z-index: 1; }
.portal-faq__mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 24px;
  color: #07182d;
  background: #c8f231;
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
}
.portal-faq__mark svg {
  width: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.portal-faq__hero h2 { margin: 3px 0 8px; font-size: clamp(30px, 4vw, 50px); letter-spacing: -.035em; }
.portal-faq__hero p:last-child { max-width: 720px; margin: 0; color: #c7d7e5; line-height: 1.65; }
.portal-faq__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(20px, 3.2vw, 40px);
}
.portal-faq-group {
  --faq-accent: #2e69b3;
  --faq-soft: #eef5ff;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d7e0e7;
  border-top: 4px solid var(--faq-accent);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(6,23,46,.055);
}
.portal-faq-group--green { --faq-accent:#23834a; --faq-soft:#edf8f0; }
.portal-faq-group--violet { --faq-accent:#7553c7; --faq-soft:#f3efff; }
.portal-faq-group--gold { --faq-accent:#b57a12; --faq-soft:#fff7e8; }
.portal-faq-group--teal { --faq-accent:#137d82; --faq-soft:#ebf8f7; }
.portal-faq-group--rose { --faq-accent:#bc4776; --faq-soft:#fff0f5; }
.portal-faq-group--navy { --faq-accent:#173f70; --faq-soft:#eef3f8; }
.portal-faq-group--orange { --faq-accent:#ca652a; --faq-soft:#fff2eb; }
.portal-faq-group--lime { --faq-accent:#658d13; --faq-soft:#f2f8df; }
.portal-faq-group--sky { --faq-accent:#2784b5; --faq-soft:#ecf8fe; }
.portal-faq-group--red { --faq-accent:#c33a3e; --faq-soft:#fff0f0; grid-column: 1 / -1; }
.portal-faq-group > header {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 20px 22px;
  background: linear-gradient(120deg, var(--faq-soft), #fff 76%);
}
.portal-faq-group > header > span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid color-mix(in srgb, var(--faq-accent) 24%, #fff);
  border-radius: 14px;
  color: var(--faq-accent);
  background: #fff;
  font: 900 11px "SFMono-Regular", Consolas, monospace;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--faq-accent) 12%, transparent);
}
.portal-faq-group header p { margin: 0 0 4px; color: var(--faq-accent); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.portal-faq-group h3 { margin: 0; color: #0b2742; font-size: 21px; }
.portal-faq-group details { border-top: 1px solid #e8edf1; }
.portal-faq-group summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 12px;
  align-items: center;
  min-height: 62px;
  padding: 13px 20px;
  color: #183650;
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
  list-style: none;
}
.portal-faq-group summary::-webkit-details-marker { display: none; }
.portal-faq-group summary i {
  position: relative;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--faq-soft);
}
.portal-faq-group summary i::before,
.portal-faq-group summary i::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 13px;
  width: 11px;
  height: 1.5px;
  background: var(--faq-accent);
  transition: transform .2s ease;
}
.portal-faq-group summary i::after { transform: rotate(90deg); }
.portal-faq-group details[open] summary i::after { transform: none; }
.portal-faq-group summary:focus-visible { outline: 2px solid #9eca22; outline-offset: -3px; }
.portal-faq-group details > p { margin: 0; padding: 2px 54px 20px 20px; color: #607284; font-size: 12px; line-height: 1.72; }

@media (max-width: 850px) {
  .portal-faq__grid { grid-template-columns: 1fr; }
  .portal-faq-group--red { grid-column: auto; }
}
@media (max-width: 520px) {
  .portal-faq__hero { align-items: flex-start; flex-direction: column; }
  .portal-faq__mark { width: 60px; height: 60px; border-radius: 19px; }
  .portal-faq__grid { padding: 14px; }
}
.impersonation-banner{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 28px;background:#fff4cc;border-bottom:1px solid #d6a900;color:#362b00}.impersonation-banner[hidden]{display:none}.impersonation-banner div{display:flex;flex-direction:column;gap:2px}.impersonation-banner strong{font-weight:800}.impersonation-banner span{font-size:13px}.impersonation-banner button{border:1px solid #7a6000;border-radius:999px;background:#fff;color:#362b00;padding:9px 14px;font:inherit;font-weight:700;cursor:pointer;white-space:nowrap}.portal-is-impersonated .portal-main button[type="submit"]{cursor:not-allowed}@media(max-width:720px){.impersonation-banner{align-items:flex-start;flex-direction:column;padding:12px 18px}}

.account-meta{display:flex;gap:10px;flex-wrap:wrap;margin-left:auto}.account-meta span{min-width:92px;padding:7px 10px;border:1px solid rgba(255,255,255,.12);border-radius:10px}.account-meta small{display:block;font-size:9px;text-transform:uppercase;opacity:.65}.account-meta strong{font-size:11px}.referral-share-card{display:grid;grid-template-columns:1fr 1.4fr;gap:20px;align-items:center;padding:22px;margin:18px 0;border:1px solid #dfe5df;border-radius:18px;background:#fff}.referral-share-card h2{margin:4px 0}.referral-share-actions{display:grid;grid-template-columns:1fr auto auto auto;gap:8px}.referral-share-actions input{min-width:0;padding:12px;border:1px solid #cdd6ce;border-radius:10px}.referral-share-actions button,.referral-share-actions a{padding:12px 14px;border-radius:10px;text-decoration:none;text-align:center}.referral-share-actions button.is-copied{background:#178447;color:#fff}.referral-copy-message{grid-column:1/-1;margin:2px 0 0;padding:9px 12px;border-radius:9px;background:#eaf7ee;color:#176b39;font-size:13px;font-weight:700}.referral-copy-message[data-tone="error"]{background:#fff0f0;color:#a72f35}.is-referral-locked{background:#eef3e8!important;cursor:not-allowed}@media(max-width:1100px){.account-meta{display:none}.referral-share-card{grid-template-columns:1fr}.referral-share-actions{grid-template-columns:1fr 1fr}.referral-share-actions input{grid-column:1/-1}}

/* Sponsor verification card */
.sponsor-preview{display:flex;align-items:center;gap:14px;margin:-4px 0 18px;padding:22px 16px 16px;border:1px solid rgba(111,199,66,.38);border-radius:16px;background:linear-gradient(135deg,#f7fff1,#eef8ff);box-shadow:0 12px 30px rgba(28,62,95,.08)}
.sponsor-preview[hidden]{display:none}
.sponsor-preview__icon{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#dfffbd;color:#174620;font-weight:900}
.sponsor-preview div:last-child{display:grid;gap:2px;min-width:0}
.sponsor-preview small{text-transform:uppercase;letter-spacing:.08em;color:#6b7d8f;font-size:.68rem;font-weight:800}
.sponsor-preview strong{color:#12355b;font-size:1rem}
.sponsor-preview span{color:#63768a;font-size:.82rem;overflow-wrap:anywhere}
.sponsor-field.is-valid input{border-color:#75c83f;box-shadow:0 0 0 4px rgba(117,200,63,.12)}
.sponsor-field.is-invalid input{border-color:#d34f4f;box-shadow:0 0 0 4px rgba(211,79,79,.1)}

/* Member announcements and support tickets */
.portal-announcement-list{display:grid;gap:14px}.portal-announcement{border:1px solid #dbe4ec;border-left:5px solid #287f3c;border-radius:16px;padding:20px;background:#fff;box-shadow:0 10px 28px rgba(10,32,60,.05)}.portal-announcement[data-type=IMPORTANT]{border-left-color:#b57900}.portal-announcement[data-type=WARNING]{border-left-color:#c4323a}.portal-announcement[data-type=MAINTENANCE]{border-left-color:#315b9d}.portal-announcement header{display:flex;justify-content:space-between;align-items:start;gap:15px}.portal-announcement h3{margin:4px 0 8px}.portal-announcement p{white-space:pre-wrap}.portal-announcement small{color:#66758b}.portal-announcement-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.portal-announcement-actions button{width:auto}.support-workspace{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(340px,.9fr);gap:20px}.support-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.support-ticket-list{display:grid;gap:12px;max-height:620px;overflow:auto}.support-ticket-list article{border:1px solid #dce4ec;border-radius:14px;padding:15px;background:#f9fbfc}.support-ticket-list article h4{margin:4px 0 8px}.support-ticket-list button{width:auto;margin-top:8px}.support-ticket-detail{margin-top:20px;border:1px solid #dce4ec;border-radius:16px;background:#fff;padding:20px}.support-message{border-left:3px solid #2d883f;padding:12px 14px;margin:12px 0;background:#f7faf8}.support-message[data-internal=true]{border-left-color:#bf7b00;background:#fff8e8}.support-message small{display:block;color:#69778c;margin-bottom:5px}.support-reply-form{display:grid;gap:12px;margin-top:18px}.support-reply-form textarea{min-height:100px}.topup-approval-note{padding:12px 14px;border-radius:12px;background:#f2f7e8;color:#374925;font-size:.9rem}.portal-notification-count{display:inline-grid;place-items:center;min-width:21px;height:21px;padding:0 6px;border-radius:999px;background:#b9f000;color:#0b1c33;font-size:10px;margin-left:auto}@media(max-width:900px){.support-workspace{grid-template-columns:1fr}.support-form-grid{grid-template-columns:1fr}}


/* 2026-08-04 UI stability hotfix: auth controls and link polish */
.portal-login .login-card a {
  color: #173f70;
  font-weight: 750;
  text-decoration-color: rgba(23,63,112,.35);
  text-underline-offset: 3px;
  transition: color .18s ease, text-decoration-color .18s ease;
}
.portal-login .login-card a:hover,
.portal-login .login-card a:focus-visible {
  color: #16833f;
  text-decoration-color: currentColor;
}
.portal-login .login-card > a {
  display: inline-flex;
  margin-top: 8px;
}
.portal-login .login-card input:not([type="checkbox"]),
.portal-login .login-card select,
.portal-login .login-card textarea {
  width: 100%;
  min-height: 50px;
  padding: 14px 16px;
  border: 1px solid #cbd5df;
  border-radius: 12px;
  color: var(--ink);
  background-color: #fbfcfd;
  font: inherit;
  box-shadow: inset 0 1px 2px rgba(9,37,80,.035);
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.portal-login .login-card select,
.portal-login .login-card .premium-select {
  appearance: none;
  padding-right: 46px;
  background-image:
    linear-gradient(45deg, transparent 50%, #466078 50%),
    linear-gradient(135deg, #466078 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 21px,
    calc(100% - 14px) 21px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.portal-login .login-card input:not([type="checkbox"]):focus,
.portal-login .login-card select:focus,
.portal-login .login-card textarea:focus {
  border-color: var(--green);
  outline: none;
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(22,163,74,.13);
}
.portal-login .login-card .auth-check input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px !important;
  height: 18px;
  min-height: 0;
  margin: 3px 0 0;
  accent-color: var(--green);
}
.portal-login .sandbox-copy { line-height: 1.55; }
@media (max-width: 760px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .login-card { margin: 18px; padding: 26px 22px; }
}

/* 2026-08-04 support page final layout fix — scoped to support only */
.portal-app[data-portal-page="support"] .support-workspace {
  align-items: start;
}

.portal-app[data-portal-page="support"] #portal-support-form,
.portal-app[data-portal-page="support"] #portal-support-detail,
.portal-app[data-portal-page="support"] .support-reply-form {
  min-width: 0;
}

.portal-app[data-portal-page="support"] #portal-support-form > label,
.portal-app[data-portal-page="support"] .support-form-grid > label,
.portal-app[data-portal-page="support"] .support-reply-form > label {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0 0 14px;
}

.portal-app[data-portal-page="support"] #portal-support-form input,
.portal-app[data-portal-page="support"] #portal-support-form select,
.portal-app[data-portal-page="support"] #portal-support-form textarea,
.portal-app[data-portal-page="support"] .support-reply-form textarea {
  display: block;
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #cfd9e3;
  border-radius: 11px;
  color: var(--ink);
  background: #fbfcfd;
  font: inherit;
  line-height: 1.55;
  box-shadow: inset 0 1px 2px rgba(9,37,80,.035);
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.portal-app[data-portal-page="support"] #portal-support-form textarea {
  min-height: 170px;
  resize: vertical;
}

.portal-app[data-portal-page="support"] .support-reply-form textarea {
  min-height: 125px;
  resize: vertical;
}

.portal-app[data-portal-page="support"] #portal-support-form input:focus,
.portal-app[data-portal-page="support"] #portal-support-form select:focus,
.portal-app[data-portal-page="support"] #portal-support-form textarea:focus,
.portal-app[data-portal-page="support"] .support-reply-form textarea:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(22,163,74,.13);
}

.portal-app[data-portal-page="support"] #portal-support-form > button[type="submit"],
.portal-app[data-portal-page="support"] .support-reply-form > button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  align-self: start;
  width: auto !important;
  min-width: 210px;
  min-height: 50px;
  margin: 2px 0 0;
  padding: 13px 24px;
  border: 0;
  border-radius: 999px;
  color: #06152e !important;
  background: var(--lime) !important;
  font: inherit;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 9px 22px rgba(125,168,0,.18);
}

.portal-app[data-portal-page="support"] #portal-support-form > button[type="submit"]:hover,
.portal-app[data-portal-page="support"] .support-reply-form > button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(125,168,0,.24);
}

.portal-app[data-portal-page="support"] #portal-support-form > button[type="submit"]:disabled,
.portal-app[data-portal-page="support"] .support-reply-form > button[type="submit"]:disabled {
  opacity: .58;
  cursor: not-allowed;
  transform: none;
}

.portal-app[data-portal-page="support"] .support-ticket-detail {
  width: 100%;
  overflow: hidden;
  padding: clamp(20px, 3vw, 30px);
}

.portal-app[data-portal-page="support"] .support-ticket-detail .panel-head {
  align-items: flex-start;
}

.portal-app[data-portal-page="support"] .support-message p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.65;
}

.portal-app[data-portal-page="support"] .support-reply-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

@media (max-width: 700px) {
  .portal-app[data-portal-page="support"] #portal-support-form > button[type="submit"],
  .portal-app[data-portal-page="support"] .support-reply-form > button[type="submit"] {
    width: 100% !important;
    min-width: 0;
  }

  .portal-app[data-portal-page="support"] .support-ticket-detail .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Professional member profile and global-ready KYC */
.profile-page,
.kyc-page { max-width: 1600px; margin: 0 auto; }

.profile-hero-card,
.kyc-intro-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(135deg, #fff 0%, #f8fbfd 62%, #eff8f1 100%);
  box-shadow: 0 22px 55px rgba(16,35,63,.08);
}
.profile-identity { display: flex; align-items: center; gap: 20px; min-width: 0; }
.profile-avatar { display: grid; flex: 0 0 auto; width: 86px; height: 86px; place-items: center; border-radius: 24px; color: #061a3c; background: linear-gradient(145deg, var(--lime), #dff978); font-size: 32px; font-weight: 950; box-shadow: 0 16px 34px rgba(139,184,0,.22); }
.profile-identity h1,
.kyc-intro-card h1 { margin: 0; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.04em; }
.profile-identity > div > p:not(.eyebrow),
.kyc-intro-card > div > p:not(.eyebrow) { margin: 7px 0 0; color: var(--muted); overflow-wrap: anywhere; }
.profile-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.profile-badges span,
.kyc-status-pill { display: inline-flex; align-items: center; min-height: 30px; padding: 6px 11px; border: 1px solid #d6e1e8; border-radius: 999px; color: #395269; background: #f6f9fb; font-size: 10px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.profile-badges span:last-child,
.kyc-status-pill[data-status="APPROVED"] { border-color: #cde9d4; color: #11763b; background: #eefbf2; }
.kyc-status-pill[data-status="REJECTED"],
.kyc-status-pill[data-status="PROHIBITED"] { border-color: #f0c5c9; color: #a4232e; background: #fff1f2; }
.kyc-status-pill[data-status="NEEDS_INFORMATION"],
.kyc-status-pill[data-status="POSSIBLE_MATCH"] { border-color: #edd7a3; color: #815c00; background: #fff8e4; }
.profile-hero-actions { display: grid; max-width: 330px; justify-items: start; gap: 10px; }
.profile-primary-link { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 12px 22px; border-radius: 999px; color: #06152e; background: var(--lime); font-size: 11px; font-weight: 950; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.profile-hero-actions small { color: var(--muted); line-height: 1.55; }
.profile-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin: 18px 0; }
.profile-summary-grid article { padding: 19px 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 12px 28px rgba(16,35,63,.045); }
.profile-summary-grid small,
.profile-readonly-list dt { display: block; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.profile-summary-grid strong { display: block; margin-top: 8px; font-size: 18px; overflow-wrap: anywhere; }
.profile-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(320px,.58fr); gap: 18px; align-items: start; }
.profile-panel { min-width: 0; padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 16px 38px rgba(16,35,63,.05); }
.profile-panel#transaction-security { scroll-margin-top: 110px; border-color: #b9dc55; box-shadow: 0 0 0 3px rgba(185,220,85,.15), 0 16px 38px rgba(16,35,63,.05); }
.profile-panel--wide { grid-column: span 1; }
.profile-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.profile-panel-head h2,
.kyc-section h2,
.kyc-history-panel h2 { margin: 0; font-size: 25px; letter-spacing: -.02em; }
.profile-panel-head p:not(.eyebrow),
.kyc-section header p:not(.eyebrow) { max-width: 760px; margin: 7px 0 0; color: var(--muted); line-height: 1.6; }
#profile-save-state { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; color: var(--muted); background: var(--wash); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.profile-form { display: grid; gap: 18px; }
.profile-form-grid,
.kyc-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }
.profile-form label,
.kyc-grid label { min-width: 0; }
.profile-form label.full,
.kyc-grid label.full { grid-column: 1 / -1; }
.profile-form input,
.profile-form select,
.profile-form textarea,
.kyc-section input,
.kyc-section select,
.kyc-section textarea { width: 100%; min-height: 48px; padding: 13px 14px; border: 1px solid #cbd5df; border-radius: 11px; color: var(--ink); background: #fbfcfd; }
.profile-form textarea,
.kyc-section textarea { min-height: 104px; resize: vertical; }
.profile-form input:focus,
.profile-form select:focus,
.profile-form textarea:focus,
.kyc-section input:focus,
.kyc-section select:focus,
.kyc-section textarea:focus { border-color: var(--green); outline: 3px solid rgba(22,163,74,.13); }
.profile-form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.profile-form-actions button,
.profile-form--single > button { justify-self: start; width: auto; }
.profile-form--single { max-width: 620px; }
.profile-secondary-button { min-height: 38px; padding: 8px 14px; border: 1px solid var(--line); color: var(--ink); background: #fff; font-size: 9px; }
.profile-readonly-list { display: grid; gap: 0; margin: 0; }
.profile-readonly-list > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.profile-readonly-list > div:first-child { padding-top: 0; }
.profile-readonly-list > div:last-child { border-bottom: 0; }
.profile-readonly-list dd { margin: 6px 0 0; font-weight: 800; overflow-wrap: anywhere; }
.profile-note { margin: 18px 0 0; padding: 13px 15px; border-left: 3px solid var(--green); color: var(--muted); background: #f5faf6; line-height: 1.6; }

.kyc-intro-card { align-items: flex-start; }
.kyc-intro-card > div:first-child { max-width: 900px; }
.kyc-intro-meta { display: grid; min-width: 250px; gap: 10px; justify-items: end; }
.kyc-intro-meta small { color: var(--muted); text-align: right; }
.kyc-progress { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; margin: 18px 0; }
.kyc-progress span { padding: 10px 8px; border-radius: 10px; color: #4d6277; background: #eaf0f4; font-size: 9px; font-weight: 900; letter-spacing: .06em; text-align: center; text-transform: uppercase; }
.kyc-notice { margin: 18px 0; padding: 18px 20px; border: 1px solid #d8e5dd; border-left: 4px solid var(--green); border-radius: 14px; color: #395269; background: #f5faf6; line-height: 1.65; }
.kyc-notice[data-tone="warning"] { border-color: #ecd8a6; border-left-color: #d79d00; background: #fff9e9; }
.kyc-form { display: grid; gap: 18px; }
.kyc-section { overflow: hidden; padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 16px 38px rgba(16,35,63,.05); }
.kyc-section > header { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 22px; }
.kyc-section > header > span { display: grid; flex: 0 0 auto; width: 38px; height: 38px; place-items: center; border-radius: 11px; color: #06152e; background: var(--lime); font-size: 10px; font-weight: 950; }
.kyc-check { display: grid !important; grid-template-columns: 24px minmax(0,1fr); gap: 11px; align-items: start; padding: 14px 15px; border: 1px solid var(--line); border-radius: 12px; background: #f8fafb; }
.kyc-check input { width: 20px; min-height: 20px; margin: 2px 0 0; }
.kyc-check span { margin: 0; font-size: 13px; font-weight: 650; letter-spacing: 0; line-height: 1.55; text-transform: none; }
.kyc-upload-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.kyc-upload-grid article { display: grid; gap: 12px; min-width: 0; padding: 18px; border: 1px dashed #bfcdd8; border-radius: 14px; background: #f9fbfc; }
.kyc-upload-grid strong { font-size: 14px; }
.kyc-upload-grid input[type="file"] { min-height: auto; padding: 9px; background: #fff; }
.kyc-upload-grid button { justify-self: start; padding: 10px 17px; font-size: 9px; }
.kyc-document-list { display: grid; gap: 10px; margin-top: 18px; }
.kyc-document-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 15px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.kyc-document-row strong,
.kyc-document-row small { display: block; overflow-wrap: anywhere; }
.kyc-document-row small { margin-top: 4px; color: var(--muted); }
.kyc-document-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.kyc-document-actions button { padding: 8px 11px; border: 1px solid var(--line); color: var(--ink); background: #fff; font-size: 8px; }
.kyc-actions { position: sticky; bottom: 12px; z-index: 9; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.96); box-shadow: 0 18px 40px rgba(16,35,63,.13); backdrop-filter: blur(14px); }
.kyc-actions button.secondary { border: 1px solid var(--line); color: var(--ink); background: #fff; }
.kyc-history-panel { display: grid; grid-template-columns: minmax(220px,.35fr) minmax(0,1fr); gap: 24px; margin-top: 18px; padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.kyc-history-item { position: relative; padding: 0 0 20px 23px; border-left: 2px solid #dbe4e9; }
.kyc-history-item:last-child { padding-bottom: 0; }
.kyc-history-item::before { content: ""; position: absolute; top: 3px; left: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px #eaf7ee; }
.kyc-history-item strong,
.kyc-history-item small { display: block; }
.kyc-history-item small { margin-top: 5px; color: var(--muted); }
.kyc-history-item p { margin: 8px 0 0; line-height: 1.6; }

@media (min-width: 1120px) {
  .profile-panel--wide { grid-column: 1 / 2; }
  .profile-panel--wide:last-child { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
  .profile-hero-card,
  .kyc-intro-card { align-items: flex-start; flex-direction: column; }
  .profile-hero-actions,
  .kyc-intro-meta { max-width: none; justify-items: start; }
  .kyc-intro-meta small { text-align: left; }
  .profile-summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-panel--wide { grid-column: auto; }
  .kyc-progress { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 680px) {
  .profile-identity { align-items: flex-start; }
  .profile-avatar { width: 64px; height: 64px; border-radius: 18px; font-size: 25px; }
  .profile-summary-grid,
  .profile-form-grid,
  .kyc-grid,
  .kyc-upload-grid,
  .kyc-history-panel { grid-template-columns: 1fr; }
  .kyc-progress { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .profile-panel-head { flex-direction: column; }
  .kyc-document-row { grid-template-columns: 1fr; }
  .kyc-actions { position: static; }
  .kyc-actions button { width: 100%; }
}

/* KYC page component alignment */
.kyc-hero {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(260px,360px);
  gap: 28px;
  align-items: center;
  padding: clamp(28px,4vw,48px);
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg,#071d41 0%,#0a3e68 60%,#118047 100%);
  box-shadow: 0 24px 58px rgba(9,37,80,.16);
}
.kyc-hero h1 { margin: 0 0 13px; font-size: clamp(38px,5vw,64px); letter-spacing: -.045em; }
.kyc-hero > div:first-child > p:not(.eyebrow) { max-width: 830px; margin: 0; color: #dbe8f3; line-height: 1.7; }
.kyc-standard-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.kyc-standard-tags span { padding: 7px 10px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: #e9f4fb; background: rgba(255,255,255,.08); font-size: 9px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.kyc-status-card { padding: 22px; border: 1px solid rgba(255,255,255,.25); border-radius: 18px; background: rgba(255,255,255,.1); backdrop-filter: blur(12px); }
.kyc-status-card small,.kyc-status-card strong,.kyc-status-card span { display: block; }
.kyc-status-card small { color: #c4d8e7; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.kyc-status-card strong { margin-top: 9px; color: var(--lime); font-size: 24px; }
.kyc-status-card span { margin-top: 7px; font-size: 12px; font-weight: 800; overflow-wrap: anywhere; }
.kyc-status-card p { margin: 12px 0 0; color: #dbe8f3; font-size: 12px; line-height: 1.55; }
.kyc-progress > div { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 8px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; color: #587086; background: #fff; }
.kyc-progress > div > span { display: grid; width: 28px; height: 28px; place-items: center; padding: 0; border-radius: 8px; color: #06152e; background: #e9eef2; font-size: 9px; font-weight: 950; }
.kyc-progress > div > strong { font-size: 10px; line-height: 1.25; }
.kyc-progress > div.is-active { border-color: #b9dcbd; color: #126e37; background: #f3fbf5; }
.kyc-progress > div.is-active > span { background: var(--lime); }
.kyc-review-message { margin: 18px 0; padding: 16px 18px; border: 1px solid #ecd89f; border-left: 4px solid #d49a00; border-radius: 13px; color: #765600; background: #fff9e8; line-height: 1.6; }
.kyc-document-list article { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.kyc-document-list article small,.kyc-document-list article strong,.kyc-document-list article span { display: block; overflow-wrap: anywhere; }
.kyc-document-list article small { color: var(--green); font-size: 9px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.kyc-document-list article strong { margin-top: 3px; }
.kyc-document-list article span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.kyc-document-list article > div:last-child { display: flex; flex-wrap: wrap; gap: 7px; }
.kyc-document-list article button { padding: 8px 11px; border: 1px solid var(--line); color: var(--ink); background: #fff; font-size: 8px; }
#kyc-history { display: grid; gap: 0; }
#kyc-history article { display: grid; grid-template-columns: 16px minmax(0,1fr); gap: 10px; }
#kyc-history article > span { position: relative; border-left: 2px solid #dbe4e9; }
#kyc-history article > span::before { content:""; position:absolute; top:4px; left:-6px; width:10px; height:10px; border-radius:50%; background:var(--green); box-shadow:0 0 0 4px #eaf7ee; }
#kyc-history article > div { padding-bottom: 20px; }
#kyc-history article:last-child > div { padding-bottom: 0; }
#kyc-history strong,#kyc-history small { display:block; }
#kyc-history p { margin:6px 0; line-height:1.55; }
#kyc-history small { color:var(--muted); }

@media (max-width: 900px) {
  .kyc-hero { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .kyc-document-list article { grid-template-columns: 1fr; }
}

/* Database-driven portal navigation */
/* Hidden navigation records must override the base display:grid link rule. */
.member-nav a[hidden],
.member-nav a.is-hidden { display: none !important; }
.member-nav a.is-disabled { opacity: .48; cursor: not-allowed; filter: grayscale(.35); }
.member-nav a.is-disabled:hover { color: inherit; background: transparent; transform: none; }
.portal-page-unavailable { max-width: 760px; margin: 8vh auto; padding: clamp(30px,6vw,64px); border: 1px solid #d7e1eb; border-radius: 28px; background: linear-gradient(145deg,#fff,#f4f8ee); box-shadow: 0 24px 70px rgba(4,28,65,.1); text-align: center; }
.portal-page-unavailable > span { display: inline-flex; padding: 7px 11px; border-radius: 999px; color: #4d6500; background: #e8f7b4; font-size: 10px; font-weight: 950; letter-spacing: .1em; }
.portal-page-unavailable h1 { margin: 16px 0 10px; color: #071d43; font-size: clamp(30px,5vw,54px); }
.portal-page-unavailable p { max-width: 600px; margin: 0 auto; color: #66768e; line-height: 1.7; }
.portal-page-unavailable a { display: inline-flex; margin-top: 24px; padding: 13px 22px; border-radius: 999px; color: #071d43; background: #b9f400; font-weight: 950; text-transform: uppercase; letter-spacing: .04em; }

/* =========================================================================
   Premium responsive member header - 2026-08-06
   Shared by every authenticated member portal page.
   ========================================================================= */
.portal-header {
  position: sticky;
  top: 0;
  z-index: 40;
  isolation: isolate;
  min-height: 86px;
  gap: clamp(12px, 1.5vw, 24px);
  padding: 11px clamp(18px, 2.6vw, 42px);
  border-bottom: 1px solid rgba(13, 45, 81, .12);
  background:
    radial-gradient(circle at 100% 0%, rgba(22, 163, 74, .08), transparent 18rem),
    linear-gradient(115deg, rgba(255,255,255,.985), rgba(247,250,252,.97));
  box-shadow: 0 12px 34px rgba(8, 35, 71, .08);
  backdrop-filter: blur(20px) saturate(140%);
}
.portal-header::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--red), #eb6a42 30%, var(--green) 68%, var(--lime));
}
.portal-header > div:first-of-type {
  position: relative;
  display: block;
  flex: 0 0 auto;
  min-width: 190px;
  padding-left: 48px;
}
.portal-header > div:first-of-type::before {
  content: "A";
  position: absolute;
  left: 0;
  top: 50%;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  transform: translateY(-50%);
  border: 1px solid rgba(9,37,80,.12);
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, var(--red), #c0192d 46%, var(--green));
  box-shadow: 0 9px 22px rgba(12,51,89,.18);
  font-size: 15px;
  font-weight: 950;
  letter-spacing: -.04em;
}
.portal-header > div:first-of-type .eyebrow {
  margin: 0 0 3px;
  color: var(--green);
  font-size: 9px;
  letter-spacing: .16em;
  white-space: nowrap;
}
.portal-header > div:first-of-type > strong {
  display: block;
  color: #10233f;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
}
.account-meta {
  display: grid;
  grid-template-columns: repeat(6, minmax(86px, auto));
  flex: 1 1 auto;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  margin-left: auto;
}
.account-meta span {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(14, 54, 92, .10);
  border-radius: 12px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 6px 18px rgba(14, 47, 80, .035);
}
.account-meta small {
  display: block;
  overflow: hidden;
  color: #6c7d91;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .055em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.account-meta strong {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #193451;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.portal-user {
  display: flex !important;
  flex: 0 0 auto;
  gap: 9px !important;
  padding: 5px 5px 5px 7px;
  border: 1px solid rgba(14,54,92,.11);
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 8px 22px rgba(9,37,80,.07);
}
.portal-header-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #0c315d, #146f55);
  box-shadow: 0 7px 16px rgba(10,52,83,.20);
  font-size: 12px;
  font-weight: 950;
}
.portal-user > strong {
  max-width: 120px;
  overflow: hidden;
  color: #142b49;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.portal-header .portal-user button {
  min-height: 34px;
  padding: 8px 13px;
  border-color: rgba(9,37,80,.12);
  color: #17304e;
  background: #fff;
  box-shadow: none;
}
.portal-header .portal-user button:hover {
  color: #fff;
  border-color: var(--red);
  background: var(--red);
}
.portal-account-toggle {
  display: none;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 12px !important;
  border: 1px solid rgba(13,52,89,.13) !important;
  border-radius: 999px !important;
  color: #173451 !important;
  background: rgba(255,255,255,.88) !important;
  box-shadow: 0 7px 18px rgba(9,37,80,.06);
}
.portal-account-toggle span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, var(--green), #0e7040);
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: none;
}
.portal-account-toggle b { font-size: 9px; letter-spacing: .08em; }
.portal-account-toggle[aria-expanded="true"] {
  color: #fff !important;
  border-color: #143e66 !important;
  background: #143e66 !important;
}
.menu-button {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 13px !important;
  color: #123253 !important;
  background: #fff !important;
  box-shadow: 0 8px 20px rgba(9,37,80,.08);
}

@media (max-width: 1500px) {
  .account-meta { grid-template-columns: repeat(4, minmax(90px, auto)); }
  .account-meta span:nth-child(2),
  .account-meta span:nth-child(3) { display: none; }
}
@media (max-width: 1240px) {
  .account-meta { grid-template-columns: repeat(3, minmax(92px, auto)); }
  .account-meta span:nth-child(4) { display: none; }
  .portal-user > strong { max-width: 88px; }
}
@media (max-width: 1100px) {
  .portal-header { position: sticky; }
  .portal-account-toggle { display: inline-flex; margin-left: auto; }
  .account-meta {
    position: absolute;
    top: calc(100% + 8px);
    right: clamp(16px, 3vw, 34px);
    display: none;
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    width: min(440px, calc(100vw - 32px));
    margin: 0;
    padding: 14px;
    border: 1px solid rgba(13,52,89,.13);
    border-radius: 18px;
    background: rgba(255,255,255,.99);
    box-shadow: 0 24px 60px rgba(7,32,63,.20);
  }
  .account-meta.is-open { display: grid; }
  .account-meta span,
  .account-meta span:nth-child(n) { display: block; }
  .account-meta span { padding: 11px 12px; background: #f6f9fb; }
  .account-meta small { font-size: 8px; }
  .account-meta strong { font-size: 11px; white-space: normal; }
}
@media (max-width: 850px) {
  .portal-header {
    min-height: 74px;
    padding: 10px 14px;
    gap: 10px;
  }
  .portal-header > div:first-of-type {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
    padding-left: 0;
  }
  .portal-header > div:first-of-type::before { display: none; }
  .portal-header > div:first-of-type .eyebrow { display: none; }
  .portal-header > div:first-of-type > strong {
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
  }
  .portal-account-toggle { margin-left: 0; }
  .portal-user > strong { display: block; max-width: 82px; }
  .portal-header .portal-user button { padding-inline: 11px; font-size: 8px; }
}
@media (max-width: 620px) {
  .portal-header { gap: 8px; }
  .portal-account-toggle b { display: none; }
  .portal-account-toggle { width: 40px; justify-content: center; padding: 7px !important; }
  .portal-user { padding: 4px; }
  .portal-user > strong { display: none; }
  .portal-header-avatar { width: 32px; height: 32px; flex-basis: 32px; }
  .portal-header .portal-user button { min-height: 32px; padding: 7px 10px; }
  .account-meta {
    left: 10px;
    right: 10px;
    width: auto;
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 420px) {
  .portal-header > div:first-of-type > strong { max-width: 92px; }
  .portal-header .portal-user button { width: 34px; overflow: hidden; padding: 7px 0; color: transparent; }
  .portal-header .portal-user button::after {
    content: "↪";
    display: block;
    color: #17304e;
    font-size: 15px;
  }
  .portal-header .portal-user button:hover::after { color: #fff; }
  .account-meta { grid-template-columns: 1fr; max-height: calc(100dvh - 100px); overflow-y: auto; }
}



/* PORTAL DRAWER + ACCOUNT OVERLAY COORDINATION - 2026-08-06 */
@media (max-width: 1100px) {
  body.portal-sidebar-visible {
    overflow: hidden;
    overscroll-behavior: contain;
  }

  /* Never allow the account-details popover to sit above the mobile drawer. */
  body.portal-sidebar-visible .account-meta,
  body.portal-sidebar-visible .account-meta.is-open {
    display: none !important;
  }

  body.portal-sidebar-visible .portal-account-toggle {
    opacity: .58;
    pointer-events: none;
  }

  .member-sidebar.is-open {
    visibility: visible;
  }

  .sidebar-scrim:not([hidden]) {
    display: block;
  }
}

/* =========================================================================
   PORTAL MOBILE HERO + ACCOUNT PANEL FLOW FIX - 2026-08-06
   Keeps account details inside the sticky header flow on phones so the
   Portfolio overview hero is never hidden behind the account panel.
   ========================================================================= */
@media (max-width: 620px) {
  .portal-header {
    flex-wrap: wrap;
    align-items: center;
  }

  .account-meta {
    position: static;
    inset: auto;
    order: 20;
    flex: 1 0 100%;
    width: 100%;
    margin: 6px 0 2px;
    padding: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 16px;
    background: rgba(255,255,255,.985);
    box-shadow: 0 14px 34px rgba(7,32,63,.14);
  }

  .account-meta span {
    min-width: 0;
    padding: 10px 11px;
    border-radius: 11px;
  }

  .account-meta small {
    font-size: 7.5px;
    letter-spacing: .065em;
  }

  .account-meta strong {
    font-size: 10.5px;
    line-height: 1.28;
  }

  .portal-main {
    padding: 12px;
  }

  .portal-hero {
    position: relative;
    min-height: 0;
    overflow: hidden;
    align-items: flex-start;
    gap: 18px;
    padding: 27px 20px 23px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 20px;
    background:
      radial-gradient(circle at 102% -8%, rgba(183,239,0,.22), transparent 12rem),
      linear-gradient(135deg, #092550 0%, #0b3d69 56%, #157844 100%);
    box-shadow: 0 18px 38px rgba(7,34,68,.16);
  }

  .portal-hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, #df1f2d, #ef7045 34%, #16a34a 72%, #b7ef00);
  }

  .portal-hero::after {
    content: "";
    position: absolute;
    right: -58px;
    bottom: -78px;
    width: 170px;
    height: 170px;
    border: 24px solid rgba(255,255,255,.055);
    border-radius: 50%;
    pointer-events: none;
  }

  .portal-hero > div {
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 0;
  }

  .portal-hero .eyebrow {
    margin-bottom: 10px;
    color: #6bea8a;
    font-size: 9.5px;
    letter-spacing: .16em;
  }

  .portal-hero h1 {
    margin: 0 0 14px;
    max-width: 100%;
    color: #fff;
    font-size: clamp(34px, 10vw, 46px);
    line-height: .98;
    letter-spacing: -.045em;
    overflow-wrap: normal;
    word-break: normal;
  }

  .portal-hero p:not(.eyebrow) {
    margin: 0;
    max-width: 34rem;
    color: #dce9f4;
    font-size: 14px;
    line-height: 1.55;
  }

  .portal-hero > span {
    position: relative;
    z-index: 1;
    align-self: flex-start;
    padding: 8px 12px;
    background: rgba(5,30,58,.20);
    font-size: 9px;
  }

  /* AKCELPe - My Team dynamic report filter patch
   Append to: D:\Akcel-Investment\portal\assets\portal.css
*/

.portal-team-report-filter {
  display: grid !important;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  align-items: end !important;
  gap: 18px 22px !important;
  margin: 0 0 18px !important;
  padding: 18px 20px;
  border: 1px solid #dbe4ee;
  border-radius: 16px;
  background: #f8fbfd;
  box-shadow: 0 8px 24px rgba(15, 30, 55, 0.05);
}

.portal-team-report-filter label {
  display: grid !important;
  gap: 8px !important;
  min-width: 0 !important;
  margin: 0;
}

.portal-team-report-filter label > span {
  display: block;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: #52627a;
}

#portal-team-report-level {
  width: 100%;
  min-height: 48px;
  padding: 0 46px 0 15px;
  border: 1px solid #cfd9e5;
  border-radius: 12px;
  background-color: #fff;
  color: #122039;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #53657c 50%),
    linear-gradient(135deg, #53657c 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 20px,
    calc(100% - 14px) 20px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

#portal-team-report-level:hover {
  border-color: #aebdcd;
  background-color: #fff;
}

#portal-team-report-level:focus {
  border-color: #9cd900;
  box-shadow: 0 0 0 4px rgba(156, 217, 0, 0.14);
}

#portal-team-report-note {
  align-self: center;
  margin: 0 !important;
  padding: 11px 14px;
  border-radius: 11px;
  background: #eef4f8;
  color: #53657c;
  font-size: 13px;
  line-height: 1.5;
}

/* Keep the report table visually separated from the new filter. */
.portal-team-report-filter + table,
.portal-team-report-filter + .tablewrap,
.portal-team-report-filter + .table-wrap {
  margin-top: 0;
}

/* Tablet */
@media (max-width: 900px) {
  .portal-team-report-filter {
    grid-template-columns: 1fr;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 15px;
  }

  #portal-team-report-note {
    align-self: stretch;
  }
}

/* Mobile */
@media (max-width: 560px) {
  .portal-team-report-filter {
    margin-bottom: 14px !important;
    padding: 12px;
    border-radius: 13px;
  }

  #portal-team-report-level {
    min-height: 46px;
    font-size: 13px;
    padding-left: 12px;
  }

  #portal-team-report-note {
    font-size: 12px;
    padding: 10px 12px;
  }
}

}

/* AKCELPe - My Team dynamic report filter patch
   Append to: D:\Akcel-Investment\portal\assets\portal.css
*/

.portal-team-report-filter {
    display: grid !important;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    align-items: end !important;
    gap: 18px 22px !important;
    margin: 0 0 18px !important;
    padding: 18px 20px;
    border: 1px solid #dbe4ee;
    border-radius: 16px;
    background: #f8fbfd;
    box-shadow: 0 8px 24px rgba(15, 30, 55, 0.05);
}

    .portal-team-report-filter label {
        display: grid !important;
        gap: 8px !important;
        min-width: 0 !important;
        margin: 0;
    }

        .portal-team-report-filter label > span {
            display: block;
            font-size: 11px;
            line-height: 1.2;
            font-weight: 800;
            letter-spacing: .11em;
            text-transform: uppercase;
            color: #52627a;
        }

#portal-team-report-level {
    width: 100%;
    min-height: 48px;
    padding: 0 46px 0 15px;
    border: 1px solid #cfd9e5;
    border-radius: 12px;
    background-color: #fff;
    color: #122039;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #53657c 50%), linear-gradient(135deg, #53657c 50%, transparent 50%);
    background-position: calc(100% - 20px) 20px, calc(100% - 14px) 20px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

    #portal-team-report-level:hover {
        border-color: #aebdcd;
        background-color: #fff;
    }

    #portal-team-report-level:focus {
        border-color: #9cd900;
        box-shadow: 0 0 0 4px rgba(156, 217, 0, 0.14);
    }

#portal-team-report-note {
    align-self: center;
    margin: 0 !important;
    padding: 11px 14px;
    border-radius: 11px;
    background: #eef4f8;
    color: #53657c;
    font-size: 13px;
    line-height: 1.5;
}

/* Keep the report table visually separated from the new filter. */
.portal-team-report-filter + table,
.portal-team-report-filter + .tablewrap,
.portal-team-report-filter + .table-wrap {
    margin-top: 0;
}

/* Tablet */
@media (max-width: 900px) {
    .portal-team-report-filter {
        grid-template-columns: 1fr;
        align-items: stretch !important;
        gap: 12px !important;
        padding: 15px;
    }

    #portal-team-report-note {
        align-self: stretch;
    }
}

/* Mobile */
@media (max-width: 560px) {
    .portal-team-report-filter {
        margin-bottom: 14px !important;
        padding: 12px;
        border-radius: 13px;
    }

    #portal-team-report-level {
        min-height: 46px;
        font-size: 13px;
        padding-left: 12px;
    }

    #portal-team-report-note {
        font-size: 12px;
        padding: 10px 12px;
    }
}

@media (max-width: 390px) {
  .account-meta {
    grid-template-columns: 1fr;
    max-height: min(52dvh, 390px);
    overflow-y: auto;
  }

  .portal-hero {
    padding: 24px 18px 21px;
    border-radius: 18px;
  }

  .portal-hero h1 {
    font-size: clamp(31px, 10.5vw, 39px);
  }
}

/* =========================================================================
   PORTAL ACCOUNT INFORMATION TRUE TOGGLE - 2026-08-06
   The account panel is collapsed by default on compact screens and only
   enters the document flow while the information button is expanded.
   ========================================================================= */
@media (max-width: 1100px) {
  .account-meta:not(.is-open) {
    display: none !important;
  }

  .account-meta.is-open {
    display: grid !important;
  }
}

@media (max-width: 620px) {
  .portal-account-toggle[aria-expanded="false"] {
    color: #173451 !important;
    border-color: rgba(13,52,89,.13) !important;
    background: rgba(255,255,255,.88) !important;
  }

  .portal-account-toggle[aria-expanded="true"] span {
    background: linear-gradient(145deg, #b7ef00, #6fae00);
    color: #09284a;
  }
}


/* CTM package funding / remote beneficiary autocomplete */
.payment-mode-field{border:0;padding:0;margin:6px 0 16px}
.payment-toggle-option[hidden]{display:none!important}
.payment-mode-field legend{font-size:.75rem;font-weight:900;letter-spacing:.09em;text-transform:uppercase;color:#667085;padding:0 0 10px}
.payment-wallet-toggle{display:grid;grid-template-columns:1fr;gap:10px;width:100%}
.payment-wallet-toggle--akcelpe-only{grid-template-columns:minmax(0,1fr)}
.payment-wallet-toggle--akcelpe-only .payment-toggle-option:not([hidden]){max-width:none;width:100%}
.payment-toggle-option{position:relative;display:grid;gap:8px;align-content:start;padding:14px 16px;border:1px solid #cfd7e6;border-radius:14px;background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);cursor:pointer;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.payment-toggle-option:hover{border-color:#97afd5;box-shadow:0 10px 22px rgba(23,34,56,.08);transform:translateY(-1px)}
.payment-toggle-option input{position:absolute;opacity:0;pointer-events:none}
.payment-toggle-option:has(input:checked){border-color:#406fd8;background:linear-gradient(180deg,#eff5ff 0%,#e7f0ff 100%);box-shadow:0 0 0 3px rgba(64,111,216,.12)}
.payment-toggle-pill{display:inline-flex;align-items:center;justify-content:center;justify-self:center;align-self:start;min-height:34px;padding:0 16px;margin:0 auto 8px;border-radius:999px;background:#162847;color:#fff!important;font-size:.74rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;width:max-content;max-width:100%;line-height:1;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
.payment-toggle-option:has(input:checked) .payment-toggle-pill{background:#4e6fe6;color:#fff!important;padding-top:12px}
.payment-toggle-title{display:block;margin-top:2px;font-size:.96rem;font-weight:800;color:#172238}
.payment-toggle-option small{display:block;font-size:.82rem;line-height:1.45;color:#667085}
.member-autocomplete{position:relative}
.member-autocomplete-results{position:absolute;z-index:10050;left:0;right:0;top:calc(100% + 3px);max-height:300px;overflow:auto;border:1px solid #cfd7e6;border-top:none;border-radius:0 0 12px 12px;background:#fff;box-shadow:0 12px 30px rgba(15,31,20,.12);padding:0}
.member-autocomplete-item{width:100%!important;border:0!important;border-bottom:1px solid #edf1f7!important;border-radius:0!important;background:#fff!important;color:#1f2937!important;text-align:left!important;padding:10px 12px!important;display:grid!important;gap:2px!important;box-shadow:none!important;font-size:.95rem;font-weight:500;line-height:1.3}
.member-autocomplete-item:last-child{border-bottom:none!important}
.member-autocomplete-item:hover,.member-autocomplete-item:focus,.member-autocomplete-item.is-active{background:#3b82f6!important;color:#fff!important;outline:none}
.member-autocomplete-item strong{font-size:.96rem;font-weight:500;color:inherit}
.member-autocomplete-item .meta{font-size:.9rem;color:#667085}
.member-autocomplete-item .dash{color:#98a2b3}
.member-autocomplete-item:hover .meta,.member-autocomplete-item:focus .meta,.member-autocomplete-item.is-active .meta,.member-autocomplete-item:hover .dash,.member-autocomplete-item:focus .dash,.member-autocomplete-item.is-active .dash{color:#dbeafe}
.member-autocomplete-empty{padding:12px;color:#6d7889;font-size:.84rem;background:#fff}
@media(max-width:920px){.payment-wallet-toggle{grid-template-columns:1fr;gap:10px}.payment-toggle-option{padding:20px 10px 12px}.payment-toggle-pill{font-size:.66rem;padding:0 10px;min-height:30px}.payment-toggle-title{font-size:.82rem}.payment-toggle-option small{font-size:.72rem;line-height:1.35}}
@media(max-width:620px){.member-autocomplete-results{max-height:260px}.payment-wallet-toggle{grid-template-columns:1fr;gap:8px}.payment-toggle-option{padding:18px 8px 10px;border-radius:11px}.payment-toggle-pill{font-size:.62rem;padding:0 8px;min-height:28px}.payment-toggle-title{font-size:.74rem}.payment-toggle-option small{font-size:.66rem}}


/* v14 single-line payment wallet selector */
.payment-mode-field{margin:6px 0 16px!important;padding:0!important;border:0!important}
.payment-wallet-toggle{display:box!important;flex-wrap:nowrap!important;gap:10px!important;width:100%;overflow-x:auto;padding:3px 2px 5px;scrollbar-width:thin}
.payment-wallet-toggle--akcelpe-only{display:flex!important}
.payment-toggle-option{display:flex!important;align-items:center!important;justify-content:center!important;flex:1 1 0;min-width:0!important;min-height:48px;padding:10px 14px!important;margin:0!important;border:1px solid #cfd7e6!important;border-radius:12px!important;background:#fff!important;cursor:pointer;box-shadow:none!important;transform:none!important}
.payment-toggle-option[hidden]{display:none!important}
.payment-wallet-toggle--akcelpe-only .payment-toggle-option:not([hidden]){flex:1 1 100%;max-width:none!important;width:100%}
.payment-toggle-option input{position:absolute!important;opacity:0!important;pointer-events:none!important}
.payment-toggle-option:has(input:checked){border-color:#4e6fe6!important;background:#eef3ff!important;box-shadow:0 0 0 2px rgba(78,111,230,.12)!important}
.payment-toggle-label{display:block;width:100%;font-size:.86rem;font-weight:800;line-height:1.2;text-align:center;color:#172238;white-space:nowrap;overflow:visible;text-overflow:clip}
.payment-toggle-option:has(input:checked) .payment-toggle-label{color:#3657c8}
.payment-toggle-pill,.payment-toggle-title,.payment-toggle-option small{display:none!important}
@media(max-width:920px){.payment-wallet-toggle{gap:8px!important}.payment-toggle-option{min-height:44px;padding:9px 10px!important}.payment-toggle-label{font-size:.76rem}}
@media(max-width:620px){.payment-wallet-toggle{gap:7px!important}.payment-toggle-option{min-width:150px!important;padding:9px 8px!important}.payment-wallet-toggle--akcelpe-only .payment-toggle-option:not([hidden]){min-width:100%!important}.payment-toggle-label{font-size:.72rem}}

/* v15 payment wallet vertical rows */
.payment-wallet-toggle .payment-toggle-option{width:100%;max-width:none;box-sizing:border-box}
.payment-wallet-toggle .payment-toggle-pill{white-space:nowrap}
.payment-wallet-toggle .payment-toggle-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* COMPACT MEMBER PORTAL SIDEBAR */
.member-nav {
    gap: 3px !important;
}

    .member-nav > a,
    .member-nav a[data-portal-nav] {
        min-height: 38px !important;
        padding: 8px 14px !important;
        margin: 0 !important;
        line-height: 1.15 !important;
    }

        .member-nav > a span,
        .member-nav a[data-portal-nav] span {
            line-height: 1 !important;
        }

/* Member identity summary */
.member-card { align-items: flex-start; }
.member-card { align-items: start; }
.member-card__identity { display: grid; gap: 8px; min-width: 0; }
.member-card__identity .member-identity__name { margin: 0; color: #fff; font-size: 15px; line-height: 1.2; }
.member-identity__quick { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px; }
.member-identity__quick span { min-width: 0; padding: 6px 8px; border-radius: 8px; background: rgba(255,255,255,.08); color: #dbe8f5; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-identity__quick span b { margin-right: 5px; color: var(--lime); font-size: 8px; letter-spacing: .08em; }
.member-identity__sponsor { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.member-identity__sponsor small, .member-identity__ref { display: grid !important; gap: 2px; min-width: 0; margin: 0 !important; padding: 6px 8px; border: 1px solid rgba(255,255,255,.08); border-radius: 8px; background: rgba(1,14,35,.18); white-space: normal !important; }
.member-identity__sponsor small b, .member-identity__ref b { color: #8fa8c4 !important; font-size: 8px; letter-spacing: .07em; text-transform: uppercase; }
.member-identity__sponsor small span, .member-identity__ref span { color: #fff; font-size: 10px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; }
.member-identity__ref span { white-space: nowrap; }
.member-identity__email { margin: 0 !important; padding-top: 1px; color: #b9cbe0 !important; font-size: 9px !important; overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
.portal-user__identity { display: grid; gap: 2px; min-width: 0; max-width: 390px; text-align: right; }
.portal-user__identity > strong { display: block; }
.portal-user__meta { display: grid; gap: 1px; }
.portal-user__meta small { color: #65758a; font-size: 9px; line-height: 1.25; white-space: nowrap; }
.portal-user__meta b { color: #163c65; font-weight: 900; }
.portal-user__meta { display: grid; gap: 1px; color: var(--muted); font-size: 9px; line-height: 1.25; }
.portal-user__meta small { display: block; white-space: nowrap; }
.portal-user__meta b { color: #42546a; }
@media (max-width: 1250px) {
  .portal-user__meta small:nth-child(n+2) { display: none; }
}
@media (max-width: 850px) {
  .portal-user__identity { display: none; }
}


/* =========================================================================
   ARV income report layout polish - 2026-08-16
   Scoped to income page only.
   ========================================================================= */
.portal-app[data-portal-page="income"] .income-report-panel {
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
}
.portal-app[data-portal-page="income"] .income-report-panel > .portal-panel {
  padding: clamp(22px, 2.3vw, 32px) !important;
  border-radius: 20px;
}
.portal-app[data-portal-page="income"] .income-report-panel > .portal-panel > .panel-head {
  align-items: center;
  margin-bottom: 22px;
}
.portal-app[data-portal-page="income"] #portal-arv-export {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 12px 22px;
  white-space: nowrap;
}
.portal-app[data-portal-page="income"] .arv-report-filters {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  align-items: end !important;
  margin: 0 0 18px !important;
  padding: 20px !important;
  border: 1px solid #dbe4ee;
  border-radius: 16px;
  background: #f8fbfd;
  box-shadow: 0 8px 24px rgba(15,30,55,.04);
}
.portal-app[data-portal-page="income"] .arv-report-filters label {
  display: grid !important;
  gap: 8px !important;
  min-width: 0;
  margin: 0;
}
.portal-app[data-portal-page="income"] .arv-report-filters label > span {
  margin: 0;
  color: #52627a;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.portal-app[data-portal-page="income"] .arv-report-filters input,
.portal-app[data-portal-page="income"] .arv-report-filters select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid #cfd9e3;
  border-radius: 11px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}
.portal-app[data-portal-page="income"] .arv-report-filters input:focus,
.portal-app[data-portal-page="income"] .arv-report-filters select:focus {
  border-color: var(--green);
  outline: none;
  box-shadow: 0 0 0 4px rgba(22,163,74,.12);
}
.portal-app[data-portal-page="income"] .arv-filter-actions {
  display: flex;
  align-items: end;
  justify-content: flex-start;
}
.portal-app[data-portal-page="income"] #portal-arv-filter-reset {
  min-height: 46px;
  padding: 11px 20px;
  white-space: nowrap;
}
.portal-app[data-portal-page="income"] .arv-report-summary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}
.portal-app[data-portal-page="income"] .arv-report-summary > div {
  min-height: 76px;
  padding: 15px 16px;
}
.portal-app[data-portal-page="income"] .arv-report-summary strong {
  font-size: 17px;
}
.portal-app[data-portal-page="income"] #portal-arv-income-rows td {
  white-space: nowrap;
}
.portal-app[data-portal-page="income"] #portal-arv-income-rows td:nth-child(2),
.portal-app[data-portal-page="income"] #portal-arv-income-rows td:nth-child(3),
.portal-app[data-portal-page="income"] #portal-arv-income-rows td:nth-child(6),
.portal-app[data-portal-page="income"] #portal-arv-income-rows td:nth-child(7) {
  white-space: normal;
  min-width: 130px;
}
@media (max-width: 1250px) {
  .portal-app[data-portal-page="income"] .arv-report-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .portal-app[data-portal-page="income"] .arv-report-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 850px) {
  .portal-app[data-portal-page="income"] .income-report-panel > .portal-panel > .panel-head {
    align-items: flex-start;
  }
  .portal-app[data-portal-page="income"] #portal-arv-export {
    width: 100%;
  }
  .portal-app[data-portal-page="income"] .arv-report-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    padding: 16px !important;
  }
  .portal-app[data-portal-page="income"] .arv-report-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .portal-app[data-portal-page="income"] .arv-report-filters,
  .portal-app[data-portal-page="income"] .arv-report-summary {
    grid-template-columns: 1fr !important;
  }
  .portal-app[data-portal-page="income"] .arv-filter-actions,
  .portal-app[data-portal-page="income"] #portal-arv-filter-reset {
    width: 100%;
  }
}


/* Global async action loader: activates only while a clicked/submitted button is disabled by JS processing. */
button[data-processing="true"] {
  cursor: progress !important;
  opacity: .88;
}
button[data-processing="true"]:not([aria-busy="true"])::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  vertical-align: -2px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: akcel-button-spin .7s linear infinite;
}
@keyframes akcel-button-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  button[data-processing="true"]:not([aria-busy="true"])::before { animation-duration: 1.4s; }
}


/* Network income reporting */
.network-report-head { align-items: flex-start; }
.network-report-tabs { display: flex; gap: 8px; margin: 0 0 22px; padding: 6px; overflow-x: auto; border: 1px solid var(--line); border-radius: 999px; background: var(--wash); }
.network-report-tabs button { flex: 0 0 auto; padding: 10px 16px; color: #53657a; background: transparent; font-size: 10px; }
.network-report-tabs button.is-active { color: #061a3c; background: var(--lime); box-shadow: 0 6px 18px rgba(16,35,63,.08); }
.network-report-view { animation: network-report-in .18s ease-out; }
@keyframes network-report-in { from { opacity: .4; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.network-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.network-kpi-grid--three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.network-kpi-grid article { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg,#fff,#f7fafb); }
.network-kpi-grid article span, .network-kpi-grid article small { display: block; color: var(--muted); }
.network-kpi-grid article span { margin-bottom: 9px; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.network-kpi-grid article strong { display: block; font-size: 23px; overflow-wrap: anywhere; }
.network-kpi-grid article small { margin-top: 7px; font-size: 10px; line-height: 1.45; }
.network-explainer { margin: 16px 0 22px; padding: 16px 18px; border: 1px solid #cfe3d8; border-left: 4px solid var(--green); border-radius: 12px; background: #f5fbf7; }
.network-explainer strong { display: block; margin-bottom: 5px; }
.network-explainer p { margin: 0; color: var(--muted); line-height: 1.6; }
.compact-head { align-items: center; margin-top: 24px; margin-bottom: 12px; }
.compact-head h3 { margin: 0; font-size: 20px; }
.network-link-button { padding: 9px 14px; border: 1px solid var(--line); color: var(--ink); background: #fff; font-size: 9px; }
.network-stream { display: inline-flex; padding: 6px 9px; border-radius: 999px; font-size: 9px; font-weight: 900; letter-spacing: .05em; white-space: nowrap; }
.network-stream[data-stream="MAIN STREAM"] { color: #074b2b; background: #dff5e7; }
.network-stream[data-stream="SIDE STREAM"] { color: #3e556e; background: #eaf0f5; }
.network-share { min-width: 150px; }
.network-share strong { display: block; margin-bottom: 7px; }
.network-share-track { height: 6px; overflow: hidden; border-radius: 99px; background: #dce4ec; }
.network-share-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--green),var(--lime)); }
.network-view-leg { padding: 8px 12px; font-size: 9px; }
.network-income-filters { margin-bottom: 16px; }
.network-income-table { min-width: 1380px; }
.network-calc { max-width: 260px; white-space: normal; color: #40566f; font-family: "SFMono-Regular",Consolas,monospace; font-size: 11px; }
.network-verification-banner { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 18px; padding: 17px 20px; border: 1px solid #d7e1e8; border-radius: 14px; background: var(--wash); }
.network-verification-banner.is-pass { color: #24583b; border-color: #bde4cb; background: #edf9f1; }
.network-verification-banner.is-fail { color: #8d2029; border-color: #f1c2c7; background: #fff1f2; }
.network-verification-table { margin-top: 18px; }
.network-check { display: inline-flex; padding: 5px 9px; border-radius: 999px; font-size: 9px; font-weight: 900; }
.network-check.pass { color: #396100; background: #e8f6d0; }
.network-check.fail { color: #91252f; background: #ffe3e6; }
.network-leg-modal { position: fixed; inset: 0; z-index: 80; }
.network-leg-modal__scrim { position: absolute; inset: 0; background: rgba(3,17,39,.56); backdrop-filter: blur(3px); }
.network-leg-modal__panel { position: absolute; inset: 0 0 0 auto; width: min(1040px,94vw); padding: 28px; overflow-y: auto; background: #fff; box-shadow: -22px 0 60px rgba(4,20,44,.25); }
.network-leg-modal__head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 20px; }
.network-leg-modal__head h2 { margin: 0 0 7px; font-size: 28px; }
.network-modal-close { width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); color: var(--ink); background: #fff; font-size: 28px; line-height: 1; }
.modal-section-head { margin-top: 28px; }
.network-leg-reconcile { margin-top: 18px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--wash); font-weight: 750; }
.network-leg-reconcile.is-pass { color: #24583b; border-color: #bde4cb; background: #edf9f1; }
.network-leg-reconcile.is-fail { color: #8d2029; border-color: #f1c2c7; background: #fff1f2; }
@media (max-width: 1100px) { .network-kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 720px) {
  .network-kpi-grid, .network-kpi-grid--three { grid-template-columns: 1fr; }
  .network-report-tabs { border-radius: 14px; }
  .network-leg-modal__panel { width: 100%; padding: 20px 14px; }
  .network-verification-banner { align-items: flex-start; flex-direction: column; }
}


/* =========================================================================
   CTM PERFORMANCE REPORT LAYOUT FIX - 2026-08-17
   Scoped to Wallet > My CTM report only.
   ========================================================================= */
.portal-app[data-portal-page="wallet"] #portal-ctm-report {
  display: grid;
  gap: 0;
  margin: 4px clamp(22px, 3vw, 38px) 30px;
  padding: 28px 0 0;
  border-top: 1px solid #e1e8ee;
}
.portal-app[data-portal-page="wallet"] #portal-ctm-report[hidden] {
  display: none !important;
}
.portal-app[data-portal-page="wallet"] #portal-ctm-report .wallet-history-head {
  padding: 0;
}
.portal-app[data-portal-page="wallet"] #portal-ctm-report .ctm-report-head {
  align-items: flex-end;
  margin: 0 0 18px;
}
.portal-app[data-portal-page="wallet"] #portal-ctm-report .ctm-report-head > div {
  min-width: 0;
  max-width: 850px;
}
.portal-app[data-portal-page="wallet"] #portal-ctm-report .ctm-report-head h3,
.portal-app[data-portal-page="wallet"] #portal-ctm-report .ctm-activity-head h3 {
  margin: 0;
  color: #10233f;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
  letter-spacing: -.02em;
}
.portal-app[data-portal-page="wallet"] #portal-ctm-report .ctm-report-head p:not(.eyebrow) {
  max-width: 780px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.portal-app[data-portal-page="wallet"] #portal-ctm-report #portal-ctm-report-refresh {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 10px 16px;
  white-space: nowrap;
}
.portal-app[data-portal-page="wallet"] #portal-ctm-report .ctm-summary-table,
.portal-app[data-portal-page="wallet"] #portal-ctm-report .ctm-activity-table {
  width: 100%;
  margin: 0;
  border: 1px solid #d8e2ea;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(16,35,63,.045);
}
.portal-app[data-portal-page="wallet"] #portal-ctm-report .ctm-summary-table table {
  min-width: 980px;
}
.portal-app[data-portal-page="wallet"] #portal-ctm-report .ctm-activity-table table {
  min-width: 1120px;
}
.portal-app[data-portal-page="wallet"] #portal-ctm-report th {
  padding: 13px 15px;
  white-space: nowrap;
}
.portal-app[data-portal-page="wallet"] #portal-ctm-report td {
  padding: 15px;
  vertical-align: middle;
}
.portal-app[data-portal-page="wallet"] #portal-ctm-report .ctm-summary-table tbody td {
  font-weight: 800;
}
.portal-app[data-portal-page="wallet"] #portal-ctm-report .ctm-activity-head {
  align-items: flex-end;
  margin: 32px 0 16px;
  padding-top: 28px;
  border-top: 1px solid #e4eaef;
}
.portal-app[data-portal-page="wallet"] #portal-ctm-report .ctm-activity-head label {
  display: grid;
  gap: 7px;
  min-width: 210px;
  margin: 0;
}
.portal-app[data-portal-page="wallet"] #portal-ctm-report .ctm-activity-head label > span {
  margin: 0;
  color: #52627a;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.portal-app[data-portal-page="wallet"] #portal-ctm-report-filter {
  width: 100%;
  min-height: 42px;
  padding: 0 40px 0 13px;
  border: 1px solid #cdd8e2;
  border-radius: 11px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 13px;
}
.portal-app[data-portal-page="wallet"] #portal-ctm-report-filter:focus {
  outline: 3px solid rgba(22,163,74,.13);
  border-color: var(--green);
}
.portal-app[data-portal-page="wallet"] #portal-ctm-report .ctm-activity-table td:nth-child(2),
.portal-app[data-portal-page="wallet"] #portal-ctm-report .ctm-activity-table td:nth-child(3),
.portal-app[data-portal-page="wallet"] #portal-ctm-report .ctm-activity-table td:nth-child(5) {
  min-width: 150px;
}
.portal-app[data-portal-page="wallet"] #portal-ctm-report .ctm-activity-table td:nth-child(5) {
  overflow-wrap: anywhere;
}
@media (max-width: 850px) {
  .portal-app[data-portal-page="wallet"] #portal-ctm-report {
    margin: 0 18px 24px;
    padding-top: 24px;
  }
  .portal-app[data-portal-page="wallet"] #portal-ctm-report .ctm-report-head,
  .portal-app[data-portal-page="wallet"] #portal-ctm-report .ctm-activity-head {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }
  .portal-app[data-portal-page="wallet"] #portal-ctm-report #portal-ctm-report-refresh,
  .portal-app[data-portal-page="wallet"] #portal-ctm-report .ctm-activity-head label {
    width: 100%;
    min-width: 0;
  }
}
@media (max-width: 520px) {
  .portal-app[data-portal-page="wallet"] #portal-ctm-report {
    margin: 0 14px 22px;
  }
  .portal-app[data-portal-page="wallet"] #portal-ctm-report .ctm-report-head p:not(.eyebrow) {
    font-size: 13px;
  }
  .portal-app[data-portal-page="wallet"] #portal-ctm-report th,
  .portal-app[data-portal-page="wallet"] #portal-ctm-report td {
    padding: 12px 13px;
  }
}
