/* Galaxy client-area refinement. Keep this last among portal styles. */
section#header { min-height: 66px; padding: 5px 0; }
section#header .container { min-height: 56px; }
section#header .container::before,
section#header .container::after { content: none; display: none; }
section#header .logo { margin-right: auto; }
section#header .logo img { max-width: 176px; max-height: 50px; }
section#header .top-nav { margin-left: auto; }
.itb-authenticated .header-lined h1 { color: #f4f8fc !important; border-bottom-color: rgba(111,157,202,.24) !important; font-family: 'Inter',sans-serif; font-weight: 750; letter-spacing: -.025em; }
.itb-authenticated .header-lined { border-bottom-color: rgba(111,157,202,.24); }
.itb-authenticated .sidebar .panel > .panel-heading { border-bottom: 1px solid rgba(111,157,202,.26) !important; background: linear-gradient(110deg,#1b3048,#173655) !important; }
.itb-authenticated .sidebar .panel > .panel-heading h3 { color: #f4f8fc; font-family: 'Inter',sans-serif; font-size: 15px; }
.navbar-main { min-height: 51px; border-bottom-color: rgba(148,163,184,.2) !important; }
.navbar-main .navbar-nav > li { margin-top: 4px; margin-bottom: 4px; }
.navbar-main .navbar-nav > li > a { min-height: 41px; padding-top: 9px !important; padding-bottom: 9px !important; }

.itb-dashboard-shell { margin-bottom: 18px; }
body.itb-template-clientareahome .header-lined { display: none; }
.itb-dashboard-hero { min-height: 0; padding: 22px 27px; gap: 18px; border-radius: 16px; box-shadow: 0 12px 32px rgba(0,0,0,.2); }
.itb-dashboard-hero h1 { max-width: 650px; margin: 0 0 5px; color: #fff; font-family: 'Inter',sans-serif; font-size: clamp(23px,2.5vw,31px); font-weight: 750; line-height: 1.15; }
.itb-dashboard-hero p { font-size: 13px; line-height: 1.5; }
.itb-dashboard-hero-actions { flex-basis: 172px; }
.itb-dashboard-hero-actions .btn { min-height: 40px; }
.itb-dashboard-eyebrow { margin-bottom: 6px; }
.itb-services-overview { display: flex; align-items: center; gap: 22px; min-height: 100px; margin-top: 15px; padding: 15px 20px; border: 1px solid rgba(73,146,199,.28); border-radius: 15px; background: linear-gradient(112deg,#162a3d,#102233); }
.itb-services-overview__count { display: flex; align-items: center; flex: 0 0 auto; gap: 8px; padding-right: 20px; border-right: 1px solid rgba(150,188,216,.2); }
.itb-services-overview__count strong { color: #f7fbff; font: 750 32px/1 'Inter',sans-serif; }
.itb-services-overview__count span { max-width: 72px; color: #a9c2d8; font-size: 12px; line-height: 1.25; }
.itb-services-overview__copy { flex: 1; min-width: 0; }
.itb-services-overview h2 { margin: 0 0 3px; color: #fff; font: 700 17px/1.3 'Inter',sans-serif; }
.itb-services-overview p { margin: 0; color: #a8bed1; font-size: 12px; line-height: 1.5; }
.itb-services-overview__notice { color: #eacb84 !important; }
.itb-services-overview__notice i { margin-right: 5px; }
.itb-services-overview > .btn { flex: 0 0 auto; border-radius: 9px; }
.itb-dashboard-stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 11px 0 17px; }
.itb-stat-card { min-height: 82px; padding: 14px; border-radius: 12px; }
.itb-stat-icon { width: 38px; height: 38px; flex-basis: 38px; font-size: 16px; }
.itb-stat-copy strong { font-size: 22px; }
.itb-stat-copy strong.itb-stat-word { font-size: 16px; }
.itb-home-referral { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(240px,.85fr); align-items: center; gap: 26px; margin: 0 0 17px; padding: 23px 27px; border: 1px solid rgba(108,187,155,.25); border-radius: 17px; background: linear-gradient(120deg,#153b34,#102b2c 58%,#101d29); box-shadow: 0 14px 32px rgba(0,0,0,.14); }
.itb-home-referral__kicker { color: #9be3c2; font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.itb-home-referral__kicker i { margin-right: 6px; }
.itb-home-referral h2 { margin: 8px 0; color: #f5fffb; font: 750 clamp(22px,2.5vw,29px)/1.16 'Inter',sans-serif; letter-spacing: -.025em; }
.itb-home-referral__copy > p { max-width: 720px; margin: 0; color: #bfd8d1; font-size: 13px; line-height: 1.55; }
.itb-home-referral__facts { display: flex; flex-wrap: wrap; gap: 15px 30px; margin-top: 17px; }
.itb-home-referral__facts > div { display: flex; flex-direction: column; gap: 2px; }
.itb-home-referral__facts strong { color: #a9e8bb; font: 750 22px/1.2 'Inter',sans-serif; }
.itb-home-referral__facts span { color: #b1cfc4; font-size: 12px; }
.itb-home-referral__copy > small { display: block; margin-top: 12px; color: #9cbab0; font-size: 11px; line-height: 1.45; }
.itb-home-referral__aside { display: flex; flex-direction: column; gap: 9px; min-width: 0; padding: 19px; border: 1px solid rgba(155,227,194,.22); border-radius: 14px; background: rgba(4,19,22,.58); }
.itb-home-referral__aside > span { color: #bad4cc; font-size: 12px; }
.itb-home-referral__aside > strong { color: #fff; font: 750 30px/1.15 'Inter',sans-serif; overflow-wrap: anywhere; }
.itb-home-referral__aside p { min-height: 34px; margin: 0; color: #a9c4ba; font-size: 12px; line-height: 1.4; }
.itb-home-referral__aside .btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; border-radius: 8px; background: #5bd5a7; color: #062519; font-weight: 750; white-space: normal; }
.itb-home-referral__aside .btn:hover { background: #83edbe; color: #062519; }
.itb-affiliate-page .itb-affiliate-hero--refresh { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(245px,.85fr); align-items: center; gap: 32px; padding: 30px 34px; border-color: rgba(108,187,155,.28); border-radius: 18px; background: linear-gradient(115deg,#153b34,#112d30 60%,#101d29); box-shadow: 0 16px 36px rgba(0,0,0,.16); }
.itb-affiliate-hero--refresh::after { display: none; }
.itb-affiliate-hero--refresh .itb-support-kicker { color: #a3ebc9; }
.itb-affiliate-hero--refresh h1 { max-width: 640px; font-family: 'Inter',sans-serif; font-size: clamp(27px,3vw,38px); }
.itb-affiliate-hero--refresh p { max-width: 690px; color: #c1d9d0; font-size: 14px; line-height: 1.55; }
.itb-affiliate-hero-facts { display: flex; flex-wrap: wrap; gap: 16px 34px; margin: 22px 0 14px; }
.itb-affiliate-hero-facts > div { display: flex; flex-direction: column; gap: 4px; }
.itb-affiliate-hero-facts strong { color: #a9e8bb; font: 750 26px/1.1 'Inter',sans-serif; }
.itb-affiliate-hero-facts span { color: #bad2c8; font-size: 12px; }
.itb-affiliate-hero-content > small { color: #9dbab0; font-size: 11px; line-height: 1.5; }
.itb-affiliate-hero-wallet { display: flex; flex-direction: column; gap: 11px; min-width: 0; padding: 22px; border: 1px solid rgba(155,227,194,.24); border-radius: 15px; background: rgba(3,19,23,.58); }
.itb-affiliate-hero-wallet > span { color: #b7d0c8; font-size: 13px; }
.itb-affiliate-hero-wallet > strong { color: #fff; font: 750 32px/1.1 'Inter',sans-serif; overflow-wrap: anywhere; }
.itb-affiliate-hero-wallet > small { color: #a8c4b8; font-size: 12px; }
.itb-affiliate-hero-wallet .btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 43px; border-radius: 8px; background: #5bd5a7; color: #062519; font-weight: 750; white-space: normal; }
.itb-affiliate-hero-wallet .btn:hover { background: #83edbe; color: #062519; }
.itb-affiliate-progress { height: 7px; overflow: hidden; border-radius: 999px; background: rgba(165,215,190,.2); }
.itb-affiliate-progress > span { display: block; height: 100%; border-radius: inherit; background: #5bd5a7; }
.itb-affiliate-signup { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(240px,.75fr); gap: 28px; align-items: center; padding: 30px; border: 1px solid rgba(108,187,155,.26); border-radius: 18px; background: linear-gradient(115deg,#153b34,#112d30 60%,#101d29); }
.itb-affiliate-signup h1 { margin: 10px 0; color: #fff; font: 750 clamp(27px,3vw,38px)/1.15 'Inter',sans-serif; }
.itb-affiliate-signup p { color: #bfd7ce; line-height: 1.6; }
.itb-affiliate-signup ul { display: grid; gap: 11px; margin: 20px 0 0; padding: 0; list-style: none; color: #dceee7; }
.itb-affiliate-signup li i { width: 24px; color: #89dbb5; }
.itb-affiliate-signup__action { padding: 22px; border: 1px solid rgba(155,227,194,.22); border-radius: 15px; background: rgba(3,19,23,.58); }
.itb-affiliate-signup__action strong { color: #fff; font-size: 19px; }
.itb-affiliate-signup__action p { font-size: 12px; }
.itb-affiliate-signup__action .btn { width: 100%; padding: 11px; border-radius: 8px; background: #5bd5a7; color: #062519; font-weight: 750; }
.itb-affiliate-signup__action .btn:hover { background: #83edbe; color: #062519; }
.itb-affiliate-page .itb-affiliate-stats { margin-top: 18px; }
.itb-affiliate-page .itb-affiliate-link-box,
.itb-affiliate-page .itb-affiliate-commissions,
.itb-affiliate-page .itb-affiliate-referrals { border-radius: 15px; background: linear-gradient(145deg,#162636,#101c29); }
.itb-affiliate-page .itb-affiliate-section-heading h2 { font-family: 'Inter',sans-serif; }
.itb-affiliate-payouts { margin: 20px 0; padding: 22px; border: 1px solid rgba(111,157,202,.23); border-radius: 15px; background: linear-gradient(145deg,#162636,#101c29); }
.itb-affiliate-payout-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; margin-top: 17px; }
.itb-affiliate-payout-card { display: flex; flex-direction: column; align-items: stretch; min-width: 0; padding: 21px; border: 1px solid rgba(128,169,202,.24); border-radius: 13px; background: #101e2d; }
.itb-affiliate-payout-icon { display: flex; align-items: center; justify-content: center; width: 39px; height: 39px; margin-bottom: 12px; border-radius: 10px; background: rgba(91,213,167,.12); color: #7bdfb6; font-size: 18px; }
.itb-affiliate-payout-card h3 { margin: 0 0 7px; color: #f6fbff; font: 700 18px/1.3 'Inter',sans-serif; }
.itb-affiliate-payout-card p { min-height: 56px; margin: 0 0 14px; color: #a8bdcf; font-size: 13px; line-height: 1.5; }
.itb-affiliate-payout-card label { margin: 9px 0 4px; color: #c9dce8; font-size: 12px; font-weight: 650; }
.itb-affiliate-payout-card .form-control { height: 40px; border: 1px solid rgba(125,166,200,.3); border-radius: 8px; background: #0b1825; color: #e6f2fa; }
.itb-affiliate-payout-card small { display: block; margin: 10px 0 13px; color: #9cb1c3; line-height: 1.45; }
.itb-affiliate-payout-card .btn { min-height: 40px; margin-top: auto; border-radius: 8px; font-weight: 700; }
.itb-affiliate-payout-card .btn-primary { border-color: #5bd5a7; background: #5bd5a7; color: #062519; }
.itb-affiliate-payout-card .btn-primary:hover { border-color: #83edbe; background: #83edbe; color: #062519; }
.itb-affiliate-payout-card .btn-outline-primary { border: 1px solid rgba(91,213,167,.55); background: transparent; color: #a9e8bb; }
.itb-affiliate-payout-card .btn-outline-primary:hover { background: rgba(91,213,167,.12); color: #d9f8e8; }
.itb-affiliate-payout-card .btn:disabled { cursor: not-allowed; opacity: .48; }
.itb-affiliate-notice { margin: 0 0 18px; padding: 15px 18px; border-radius: 12px; font-weight: 650; }
.itb-affiliate-notice p { margin: 0; }
.itb-affiliate-history { margin: 20px 0; padding: 22px; border: 1px solid rgba(111,157,202,.23); border-radius: 15px; background: linear-gradient(145deg,#162636,#101c29); }
.itb-affiliate-history .table-responsive { margin-top: 16px; border: 1px solid rgba(111,157,202,.19); border-radius: 11px; }
.itb-affiliate-history-table { margin: 0; color: #dce8f2; }
.itb-affiliate-history-table thead th { padding: 12px 14px; border-bottom: 1px solid rgba(111,157,202,.26); background: #172b3e; color: #a9bfd0; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }
.itb-affiliate-history-table tbody td { padding: 14px; border-top: 1px solid rgba(111,157,202,.16); vertical-align: middle; }
.itb-affiliate-history-table tbody tr:hover { background: rgba(91,213,167,.035); }
.itb-affiliate-history-table td strong { color: #f5fbff; }
.itb-affiliate-history-table td small { display: block; color: #9eb3c5; }
.itb-affiliate-history-table td a { color: #8fdcb9; }
.itb-payout-status { display: inline-flex; padding: 5px 9px; border: 1px solid rgba(91,213,167,.24); border-radius: 99px; background: rgba(91,213,167,.08); color: #bcebd4; font-size: 12px; }
.itb-affiliate-history-empty { margin: 15px 0 0; color: #a9bdce; }
.itb-dashboard-actions--after-panels { margin-top: 20px; }
.itb-dashboard-actions--after-panels .itb-action-grid { gap: 10px; }
.client-home-panels .panel { overflow: hidden; border: 1px solid rgba(111,157,202,.2); border-radius: 13px; background: #141f2c; }
.client-home-panels .panel > .panel-heading { padding: 13px 16px; border-bottom: 1px solid rgba(111,157,202,.25) !important; background: linear-gradient(110deg,#1b3048,#173655) !important; }
.client-home-panels .panel > .panel-heading h3 { color: #f4f8fc; font-family: 'Inter',sans-serif; font-size: 16px; font-weight: 700; }
.client-home-panels .panel > .panel-heading h3 a.btn { border: 1px solid rgba(145,193,231,.25); background: rgba(17,35,55,.75) !important; color: #dceefa !important; }
.client-home-panels .panel > .panel-heading::after { background: rgba(111,157,202,.25) !important; }
.client-home-panels .panel .panel-footer { border-top-color: rgba(111,157,202,.18); }

.itb-invoice-center__hero,
.itb-support-hero,
.itb-ticket-hero { min-height: 0; padding: 24px 28px; border-color: rgba(87,150,204,.28); border-radius: 16px; background: linear-gradient(120deg,#15283c,#103359 70%,#124574); box-shadow: 0 12px 32px rgba(0,0,0,.18); }
.itb-invoice-center__copy h2,
.itb-support-hero h1,
.itb-ticket-hero h1 { font-family: 'Inter',sans-serif; font-size: clamp(24px,2.8vw,34px); letter-spacing: -.025em; }
.itb-ticket-conversation h2,
.itb-ticket-conversation h3,
.itb-support-page h2,
.itb-support-page h3,
.itb-invoice-center h2,
.itb-invoice-center h3 { font-family: 'Inter',sans-serif; }
.itb-ticket-thread,
.itb-ticket-reply-panel,
.itb-support-panel,
.itb-invoice-center { border-radius: 16px; }
.itb-ticket-thread-heading,
.itb-ticket-message-head,
.itb-ticket-reply-panel > .panel-heading { background: #172638; border-color: rgba(111,157,202,.2); }
.itb-ticket-reply-panel > .panel-heading h3,
.itb-ticket-thread-heading h2 { font-family: 'Inter',sans-serif; }
.itb-ticket-hero::after,
.itb-support-hero::after,
.itb-invoice-center__hero::after { opacity: .55; }
.itb-ticket-conversation .panel-heading,
.itb-invoices-route .panel-heading { border-bottom-color: rgba(104,153,197,.3) !important; }
.itb-invoice-page .itb-invoice-hero { background: linear-gradient(120deg,#15283c,#103359 70%,#124574); }
.itb-invoice-page h1,
.itb-invoice-page h2,
.itb-invoice-page h3 { font-family: 'Inter',sans-serif; }
.itb-authenticated .dataTables_wrapper table.table-list thead th { background: linear-gradient(110deg,#1b3048,#173655) !important; border-bottom: 1px solid rgba(111,157,202,.3) !important; }
.itb-support-page .itb-support-table .label.status { display: inline-block; min-width: 0; padding: 6px 11px; border: 1px solid rgba(111,157,202,.2); border-radius: 999px; background: #1b2b3c !important; color: #c6d8e9 !important; font-weight: 700; }
.itb-support-page .itb-support-table .label.status-answered { border-color: rgba(55,169,238,.35); background: #123753 !important; color: #a9dfff !important; }
.itb-support-page .itb-support-table .label.status-closed { border-color: rgba(148,163,184,.2); background: #242e39 !important; color: #b4c0cd !important; }

@media (max-width: 767px) {
  section#header { min-height: 58px; }
  section#header .container { min-height: 48px; gap: 8px; }
  section#header .logo img { max-width: 142px; max-height: 42px; }
  .itb-dashboard-hero { padding: 19px; }
  .itb-dashboard-hero-actions { flex: 0 0 auto; width: 100%; }
  .itb-dashboard-hero-actions .btn { flex: 0 0 auto; min-height: 44px; }
  .itb-services-overview { flex-wrap: wrap; gap: 12px; padding: 16px; }
  .itb-services-overview__count { padding-right: 12px; }
  .itb-services-overview__copy { flex: 1 1 160px; }
  .itb-services-overview > .btn { width: 100%; }
  .itb-home-referral,
  .itb-affiliate-page .itb-affiliate-hero--refresh,
  .itb-affiliate-signup { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
  .itb-affiliate-hero-wallet { padding: 18px; }
  .itb-affiliate-payout-grid { grid-template-columns: 1fr; }
  .itb-affiliate-payout-card p { min-height: 0; }
  .itb-dashboard-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .itb-invoice-center__hero,
  .itb-support-hero,
  .itb-ticket-hero { padding: 21px; }
}
@media (max-width: 440px) {
  .itb-dashboard-stats { grid-template-columns: 1fr 1fr; }
  .itb-stat-card { gap: 8px; padding: 10px; min-height: 76px; }
  .itb-stat-icon { width: 32px; height: 32px; flex-basis: 32px; font-size: 14px; }
  .itb-stat-copy strong { font-size: 20px; }
  .itb-stat-copy span { font-size: 11px; }
  .itb-stat-arrow { display: none; }
}
