/* Member workspace. Deliberately scoped so authentication and checkout retain their layouts. */
body.fj-theme.fj-console {
  --fj-page: #f4f6fa;
  --fj-ink: #1d2d46;
  --fj-muted: #748197;
  --fj-line: #e7ebf2;
  --fj-shadow: 0 3px 12px #24375504;
  background: var(--fj-page);
}
body.fj-console .page-content { max-width: 1540px; padding-top: 100px; }
body.fj-console #page-topbar.fj-topbar { background: #fff; backdrop-filter: none; }
body.fj-console .vertical-menu.fj-sidebar { background: #14263e !important; }
body.fj-console .fj-sidebar-scroll { padding-top: 22px; }
body.fj-console .fj-sidebar-caption { font-size: 11px; letter-spacing: .8px; }
body.fj-theme.fj-console #sidebar-menu #side-menu.fj-menu-ready a[aria-current=page],
body.fj-theme.fj-console #sidebar-menu #side-menu.fj-menu-ready a.fj-active { background: #e8effb; color: #315987 !important; box-shadow: inset 3px 0 #85a9e9; }
body.fj-console .fj-sidebar-bottom { background: #ffffff04; border-color: #ffffff0e; padding-block: 15px; }
body.fj-console .fj-sidebar-bottom img { display: none; }
body.fj-console .fj-page-heading { margin-bottom: 23px; }
body.fj-console .fj-page-heading h1 { font-size: 25px; }
body.fj-console .fj-page-heading>a { color: #76869d; }
body.fj-console .card, body.fj-console .fj-panel { border-color: #e7ebf2; border-radius: 14px; box-shadow: var(--fj-shadow); }
body.fj-console .card-body { padding: 25px; }
body.fj-console .fj-panel { padding: 22px; margin-bottom: 20px; }
body.fj-console .fj-panel-heading { padding-bottom: 15px; margin-bottom: 18px; }
body.fj-console .fj-panel-heading h2 { font-size: 15px; font-weight: 650; }
body.fj-console .fj-panel-heading a { font-size: 11px; color: #72849e; }
body.fj-console .fj-panel-heading a:hover { color: #3269ec; }

/* A compact greeting gives the resources more room in the first screen. */
body.fj-console .fj-dashboard-heading {
  position: relative; isolation: isolate; overflow: hidden;
  margin-bottom: 20px; padding: 22px 26px; min-height: 127px;
  border: 1px solid #e2e9f5; border-radius: 16px;
  background: linear-gradient(105deg,#fff 10%,#f0f5ff 100%);
}
body.fj-console .fj-dashboard-heading:after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 230px; height: 230px; border-radius: 50%; right: 11%; top: -125px;
  border: 1px solid #3269ec0a; box-shadow: 0 0 0 30px #3269ec04,0 0 0 60px #3269ec03;
}
body.fj-console .fj-dashboard-heading .fj-eyebrow { font-size: 10px; color: #6382b1; letter-spacing: 1.2px; }
body.fj-console .fj-dashboard-heading h1 { font-size: 26px; line-height: 1.4; margin: 5px 0 7px; letter-spacing: -.6px; }
body.fj-console .fj-dashboard-heading p { font-size: 12px; color: #8490a3; }
body.fj-console .fj-dashboard-heading>.btn { min-height: 40px; padding: 9px 16px; font-size: 12px; box-shadow: none; }

/* Four values, with equal space and stable numeric alignment. */
body.fj-console .fj-ledger { gap: 16px; margin-bottom: 18px; }
body.fj-console .fj-ledger section,
body.fj-console .fj-ledger section:last-child { min-height: 140px; padding: 20px 22px 16px; border: 1px solid #e7ebf2; border-radius: 14px; box-shadow: var(--fj-shadow); }
body.fj-console .fj-ledger section>span:not(.fj-metric-icon) { font-size: 12px; color: #7a879a; }
body.fj-console .fj-ledger strong { font-size: 30px; font-weight: 650; margin: 8px 0 10px; line-height: 1.3; letter-spacing: -.7px; }
body.fj-console .fj-ledger a { font-size: 11px; color: #7a8aa2; }
body.fj-console .fj-ledger .fj-metric-icon { width: 32px; height: 32px; right: 17px; top: 17px; border-radius: 10px; }
body.fj-console .fj-ledger section:first-child { background: linear-gradient(110deg,#2456bc,#346de0); border-color: #3265ca; box-shadow: 0 6px 16px #285ec015; }
body.fj-console .fj-ledger section:first-child>span:not(.fj-metric-icon),
body.fj-console .fj-ledger section:first-child a { color: #e1ebff; }
body.fj-console .fj-ledger section:first-child strong { color: #fff; }

/* Frequently used destinations remain ordinary links. */
body.fj-console .fj-console-shortcuts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; padding: 8px; margin-bottom: 22px; background: #fff; border: 1px solid #e7ebf2; border-radius: 12px; }
body.fj-console .fj-console-shortcuts>a { display: flex; gap: 10px; align-items: center; min-width: 0; min-height: 46px; padding: 7px 16px; font-size: 12px; font-weight: 500; color: #4c5f7c; border-radius: 8px; }
body.fj-console .fj-console-shortcuts>a:hover { background: #f4f7fd; color: #3269ec; }
body.fj-console .fj-shortcut-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; color: #6084c5; background: #f2f6fd; flex: none; }
body.fj-console .fj-shortcut-icon .fj-icon { width: 17px; height: 17px; }
body.fj-console .fj-console-shortcuts>a>.fj-icon { margin-left: auto; width: 12px; height: 12px; color: #a8b3c4; flex: none; }
body.fj-console .fj-dashboard-grid { grid-template-columns: minmax(0,1fr) 292px; gap: 20px; }
body.fj-console .fj-resources { padding-bottom: 12px; }
body.fj-console .fj-resources .fj-panel-heading { margin-bottom: 0; border-bottom: 0; }
body.fj-console .fj-resource-table { min-width: 630px; width: 100%; }
body.fj-console .table th, body.fj-console .table td { padding: 15px 13px; border-color: #edf0f5; }
body.fj-console .table thead th { background: #f7f9fc; color: #8190a5; font-size: 11px; font-weight: 500; white-space: nowrap; }
body.fj-console .fj-resource-table th:first-child { border-radius: 8px 0 0 8px; }
body.fj-console .fj-resource-table th:last-child { border-radius: 0 8px 8px 0; }
body.fj-console .fj-resource-name { color: #354d70 !important; display: block; font-size: 12px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
body.fj-console .fj-resource-name:hover { color: #3269ec !important; }
body.fj-console .fj-resource-domain { display: block; margin-top: 3px; color: #96a1b1; font-size: 10px; overflow-wrap: anywhere; }
body.fj-console .fj-resource-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 5px; background: #f0f3f7; color: #7b879a; font-size: 10px; line-height: 1.5; white-space: nowrap; }
body.fj-console .fj-resource-status:before { content: ""; width: 5px; height: 5px; background: currentColor; border-radius: 50%; flex: none; }
body.fj-console .fj-resource-active { background: #eaf7f1; color: #3c9874; }
body.fj-console .fj-resource-suspended { background: #fff5e4; color: #ad863a; }
body.fj-console .fj-resource-ip { color: #7f8ca1; font-variant-numeric: tabular-nums; font-size: 11px; }
body.fj-console .fj-resources .table-footer { padding-top: 14px; margin-top: 0; }
body.fj-console .table-pageinfo { font-size: 11px; }
body.fj-console .table-pageinfo select { border: 1px solid #e3e8f1; background: #fff; color: #70809a; border-radius: 5px; min-height: 28px; }
body.fj-console .page-link { border-radius: 6px; margin-inline: 2px; font-size: 11px; min-width: 30px; text-align: center; }
body.fj-console .fj-owned-products article { padding: 16px; background: #f9fbfe; border-color: #eaf0f7; border-radius: 10px; }
body.fj-console .fj-owned-products article>.fj-icon { width: 25px; height: 25px; color: #638ccf; flex: none; }
body.fj-console .fj-owned-products h3 { font-size: 13px; }
body.fj-console .fj-owned-products p { font-size: 10px; }
body.fj-console .fj-owned-products a { font-size: 11px; }
body.fj-console .fj-resource-empty { min-height: 205px; padding-block: 12px; }
body.fj-console .fj-resource-empty>img { width: 160px; height: 80px; }
body.fj-console .fj-empty h3 { font-size: 16px; }
body.fj-console .fj-empty p { font-size: 12px; }
body.fj-console .fj-expense-grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; }
body.fj-console .fj-expense-grid>div { padding: 16px 18px; background: #f7f9fc; border-radius: 10px; min-width: 0; }
body.fj-console .fj-expense-grid>div:nth-child(2) { background: #fffbf4; }
body.fj-console .fj-expense-grid span { font-size: 11px; }
body.fj-console .fj-expense-grid strong { font-size: 22px; color: #344d72; margin-top: 8px; overflow-wrap: anywhere; }
body.fj-console .fj-expense-grid>div:nth-child(2) strong { color: #a2834d; }
body.fj-console .fj-expense-grid>.btn { min-height: 38px; align-self: center; font-size: 11px; padding-inline: 13px; }

/* Account information is compact and secondary to resources. */
body.fj-console .fj-account-panel { background: linear-gradient(#f8faff 0,#fff 130px); }
body.fj-console .fj-account-identity { gap: 12px; padding-bottom: 17px; }
body.fj-console .fj-account-identity .fj-avatar { width: 44px; height: 44px; background: #e7eeff; border-color: #dce6fb; color: #5072b5; border-radius: 13px; }
body.fj-console .fj-account-identity strong { font-size: 14px; }
body.fj-console .fj-account-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding: 15px 0; gap: 6px; }
body.fj-console .fj-account-links a { display: flex; flex-direction: column; gap: 7px; padding: 3px 0; font-size: 10px; min-height: 44px; text-align: center; }
body.fj-console .fj-account-links a>.fj-icon:first-child { width: 19px; height: 19px; color: #8299bb; }
body.fj-console .fj-account-links a>.fj-icon:last-child { display: none; }
body.fj-console .fj-account-status { padding-top: 12px; border-top: 1px solid #edf1f6; }
body.fj-console .fj-account-status>div { padding: 9px 0; }
body.fj-console .fj-account-status dt { font-size: 11px; font-weight: 400; color: #8391a5; }
body.fj-console .fj-account-status .fj-state { font-size: 10px; }
body.fj-console .fj-account-note { padding-top: 12px; margin-top: 8px; font-size: 10px; line-height: 1.9; color: #8e9bae; }
body.fj-console .fj-news-list li { padding: 12px 0; }
body.fj-console .fj-news-list a { font-size: 12px; line-height: 1.7; }
body.fj-console .fj-news-list time { font-size: 10px; color: #9ca8b8; }
body.fj-console .fj-small-empty { padding-block: 16px; }
body.fj-console .fj-help-panel { background: #edf3fd; border-color: #e0e9f9; padding: 21px 23px; border-radius: 14px; }
body.fj-console .fj-help-panel h3 { font-size: 15px; }
body.fj-console .fj-help-panel p { color: #8391a5; font-size: 11px; line-height: 1.8; }
body.fj-console .fj-help-panel>a { font-size: 11px; }
body.fj-console details.fj-service-notice { margin-top: 2px; margin-bottom: 18px; background: #fffcf6; }
body.fj-console .fj-community-card { padding: 20px 24px; margin: 0; }
body.fj-console .fj-community-content h2 { font-size: 15px; }
body.fj-console .fj-community-content p { font-size: 11px; }
body.fj-console .fj-community-kicker { font-size: 10px; }
body.fj-console .fj-community-emblem { width: 44px; height: 44px; border-radius: 12px; font-size: 15px; }

/* Shared member lists and forms. No control behavior or visibility is changed. */
body.fj-console .table-header { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 20px; }
body.fj-console .table-search { gap: 10px; }
body.fj-console .table-search .form-control { min-height: 40px; }
body.fj-console .status.badge { border-radius: 6px; padding: 6px 9px; font-size: 11px; line-height: 1.4; }
body.fj-console .status-paid, body.fj-console .status-active { background: #eaf7f1; color: #348563; }
body.fj-console .status-unpaid { background: #fff4e1; color: #ad8034; }
body.fj-console .status-cancelled { background: #f0f3f7; color: #8490a3; }
body.fj-console .status-refunded { background: #edf2ff; color: #5c7eb3; }
body.fj-console .security-item { border-radius: 12px; border-color: #e7ecf4; }
body.fj-console .form-control { border-radius: 8px; }
body.fj-console :is(a,button,summary):focus-visible { outline: 2px solid #3269ec; outline-offset: 3px; }

@media (max-width:1250px) and (min-width:992px) {
  body.fj-console .fj-dashboard-grid { grid-template-columns: minmax(0,1fr) 260px; gap: 18px; }
  body.fj-console .fj-panel { padding: 20px; }
  body.fj-console .fj-owned-products { grid-template-columns: 1fr; }
  body.fj-console .fj-ledger section, body.fj-console .fj-ledger section:last-child { padding-inline: 17px; }
  body.fj-console .fj-ledger .fj-metric-icon { width: 27px; height: 27px; right: 12px; }
  body.fj-console .fj-ledger strong { font-size: 27px; }
  body.fj-console .fj-console-shortcuts>a { padding-inline: 11px; gap: 8px; font-size: 11px; }
}
@media (max-width:1100px) and (min-width:992px) {
  body.fj-console .fj-dashboard-grid { grid-template-columns: minmax(0,1fr); }
  body.fj-console .fj-dashboard-aside { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
  body.fj-console .fj-dashboard-aside .fj-panel { margin-bottom: 0; }
  body.fj-console .fj-dashboard-aside .fj-help-panel { grid-column: 1/-1; }
  body.fj-console .fj-owned-products { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:991px) {
  body.fj-console .page-content { padding-top: 96px; }
  body.fj-console .fj-dashboard-grid { grid-template-columns: minmax(0,1fr); }
  body.fj-console .fj-dashboard-aside { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-bottom: 20px; }
  body.fj-console .fj-dashboard-aside .fj-panel { margin-bottom: 0; }
  body.fj-console .fj-dashboard-aside .fj-help-panel { grid-column: 1/-1; }
  body.fj-console .fj-account-links a { display: flex; min-width: 0; }
  body.fj-console .fj-ledger a { min-height: 32px; }
}
@media (max-width:767px) {
  body.fj-console .page-content { padding: 87px 16px 20px; }
  body.fj-console .card-body, body.fj-console .fj-panel { padding: 19px 17px; }
  body.fj-console .fj-dashboard-heading { padding: 20px; min-height: 0; gap: 12px; margin-bottom: 16px; }
  body.fj-console .fj-dashboard-heading h1 { font-size: 23px; }
  body.fj-console .fj-dashboard-heading p { line-height: 1.8; font-size: 11px; }
  body.fj-console .fj-dashboard-heading>.btn { display: none; }
  body.fj-console .fj-ledger { gap: 11px; margin-bottom: 14px; }
  body.fj-console .fj-ledger section, body.fj-console .fj-ledger section:last-child { min-height: 134px; padding: 17px 15px 10px; border-radius: 12px; }
  body.fj-console .fj-ledger section>span:not(.fj-metric-icon) { font-size: 11px; padding-right: 24px; }
  body.fj-console .fj-ledger strong { font-size: 25px; margin: 9px 0 5px; }
  body.fj-console .fj-ledger .fj-metric-icon { width: 25px; height: 25px; right: 12px; top: 13px; border-radius: 8px; }
  body.fj-console .fj-ledger a { font-size: 10px; }
  body.fj-console .fj-console-shortcuts { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 3px 0; margin-bottom: 18px; padding: 5px; }
  body.fj-console .fj-console-shortcuts>a { padding: 8px 9px; min-height: 48px; font-size: 11px; gap: 8px; }
  body.fj-console .fj-shortcut-icon { width: 26px; height: 26px; }
  body.fj-console .fj-console-shortcuts>a>.fj-icon { width: 10px; height: 10px; }
  body.fj-console .fj-panel-heading a { min-height: 32px; font-size: 10px; }
  body.fj-console .fj-resources .table-responsive { margin-inline: -4px; max-width: calc(100% + 8px); }
  body.fj-console .fj-resource-table { min-width: 610px; }
  body.fj-console .fj-resource-table th, body.fj-console .fj-resource-table td { padding: 13px 11px; }
  body.fj-console .fj-resource-name { min-height: 32px !important; padding: 0 !important; }
  body.fj-console .fj-resources .table-footer { gap: 9px; }
  body.fj-console .fj-resources .table-pageinfo { margin: 0 !important; line-height: 2; }
  body.fj-console .fj-resources .table-pageinfo .mx-2 { margin-left: 4px !important; margin-right: 0 !important; }
  body.fj-console .fj-resources .table-pagination { gap: 6px; }
  body.fj-console .fj-resources .pagination { margin: 0; }
  body.fj-console .fj-owned-products article { padding: 14px; }
  body.fj-console .fj-expense-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  body.fj-console .fj-expense-grid>div { padding: 13px; }
  body.fj-console .fj-expense-grid strong { font-size: 20px; }
  body.fj-console .fj-expense-grid>.btn { grid-column: 1/-1; min-height: 40px; }
  body.fj-console .fj-dashboard-aside { display: block; margin-bottom: 18px; }
  body.fj-console .fj-dashboard-aside .fj-panel { margin-bottom: 18px; }
  body.fj-console .fj-account-links { padding-block: 18px; }
  body.fj-console .fj-account-status>div { padding-block: 11px; }
  body.fj-console .fj-account-note { font-size: 11px; }
  body.fj-console .fj-community-card { padding: 19px; }
  body.fj-console .fj-page-heading h1 { font-size: 23px; }
  body.fj-console .table-header { margin-bottom: 17px; }
  body.fj-console .table-search { width: 100%; flex-wrap: wrap; }
  body.fj-console .table-search>.form-control { flex: 1 1 140px; width: 100% !important; }
}
@media (max-width:359px) {
  body.fj-console .page-content { padding-inline: 12px; }
  body.fj-console .fj-ledger .fj-metric-icon { display: none; }
  body.fj-console .fj-ledger section>span:not(.fj-metric-icon) { padding-right: 0; }
  body.fj-console .fj-ledger strong { font-size: 23px; }
  body.fj-console .fj-console-shortcuts>a { font-size: 10px; padding-inline: 7px; }
}

/* Cards follow the content instead of stretching to the height of the other column. */
body.fj-console .fj-dashboard-grid{align-items:start}
body.fj-console .fj-dashboard-main{display:block;min-height:0}
body.fj-console .fj-dashboard-main>.fj-community-card{margin-top:0;margin-bottom:0}
body.fj-console .fj-dashboard-aside>.fj-help-panel{margin-top:0}
body.fj-console .fj-dashboard-main>.fj-community-card{
  grid-template-columns:44px minmax(0,1fr);gap:12px 16px;padding:21px 23px;
}
body.fj-console .fj-dashboard-main>.fj-community-card .fj-community-actions{
  grid-column:2;flex-direction:row;align-items:center;flex-wrap:wrap;gap:10px 16px;margin-top:2px;
}
body.fj-console .fj-dashboard-main>.fj-community-card .fj-community-number{margin-right:auto}
body.fj-console .fj-dashboard-main>.fj-community-card .fj-community-join{min-height:38px;padding:7px 15px;font-size:11px}
body.fj-console .fj-dashboard-main>.fj-community-card .fj-community-qr-link{font-size:10px}
@media(max-width:1100px){body.fj-console .fj-dashboard-main>.fj-community-card{margin:0}}
@media(max-width:767px){
  body.fj-console .fj-dashboard-main>.fj-community-card{padding:19px;gap:10px 13px}
  body.fj-console .fj-dashboard-main>.fj-community-card .fj-community-actions{grid-column:1/-1}
  body.fj-console .fj-dashboard-main>.fj-community-card .fj-community-number{width:100%}
}

@media(max-width:767px){
  body.fj-console .fj-dashboard-main>.fj-community-card .fj-community-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  body.fj-console .fj-dashboard-main>.fj-community-card .fj-community-number{grid-column:1/-1;margin:0;font-size:12px}
  body.fj-console .fj-dashboard-main>.fj-community-card .fj-community-join,
  body.fj-console .fj-dashboard-main>.fj-community-card .fj-community-qr-link{display:flex;align-items:center;justify-content:center;min-width:0;width:100%;min-height:44px;padding:9px 8px;font-size:12px;border:1px solid #dce7fa;border-radius:9px}
  body.fj-console .fj-dashboard-main>.fj-community-card .fj-community-content p{font-size:12px;line-height:1.8}
}
