*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  font-family: 'Poppins-Medium' !important
}

:where(h1, h2, h3, h4, h5, h6, p, ul) {
  margin: 0;
  padding: 0;
}

:root {
  --primary: #2563EB;
  --dark_primary: #0e50e0;
  --border: #B9B9B9;
  --card_bg: #F2F2F2;
  --black: #000000;
  --gray_text: #717171;
  --light_primary: #E1E9FC;
  --white: #ffffff;
}

/******************************* common_css *************************************/
.common_large_title {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.common_large_title h3 {
  font-family: 'Poppins-Bold';
  font-size: 22px;
  border-left: 3px solid var(--dark_primary);
  padding-left: 3px;
}
.error_msg{
  color: red;
}
/******************************* end_common_css *************************************/


/******************************* auth *************************************/
.auth_wrapper {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

.auth_left_side {
  width: 50%;
  height: 100%;
  background-color: var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.auth_box_img:nth-child(1) {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(50%, 30%);
}

.auth_box_img:last-child {
  position: absolute;
  bottom: 0;
  right: 0;
  transform: translate(-50%, -30%);
}

.auth_left_center_img img {
  width: 100%;
}

.auth_right_side {
  width: 100%;
  max-width: 435px;
  margin: 0 auto;
}

.auth_logo {
  margin-top: 24px;
  text-align: center;
}
.auth_logo img{
  width: 100%;
  max-width: 335px;
}

.auth_form {
  width: 100%;
  height: calc(100vh - 96px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: auto;
}

.auth_title {
  text-align: center;
  /* margin-bottom: 40px; */
}

.auth_title h3 {
  font-size: 24px;
}

.auth_title p {
  font-size: 16px;
  color: var(--gray_text);
}

.input_label {
  font-size: 18px;
  color: var(--gray_text);
  margin-bottom: 10px;
}

.input_filed {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  position: relative;
}
.data_of_birth{
  padding: 12px;
}
.input_text {
  border: 0;
  outline: none;
  padding-left: 12px;
  width: 100%;
}

.input_text::placeholder {
  color: var(--border);
}

.input_box {
  margin-bottom: 10px;
}

.show_password {
  position: absolute;
  right: 10px;
  cursor: pointer;
}

.forgot_password {
  padding: 20px 0;
  text-align: right;
}

.forgot_password a {
  color: var(--primary);
  font-size: 18px;
}

.auth_btn {
  font-family: 'Poppins-Bold';
  width: 100%;
  background-color: var(--primary);
  color: var(--white);
  font-size: 20px;
  border: 0;
  padding: 12px 0;
  border-radius: 8px;
  cursor: pointer;
  transition: all .5s;
}

.auth_btn:hover {
  background-color: var(--dark_primary);
}

.or_text {
  margin: 22px 0;
}

.or_text p {
  text-align: center;
  color: var(--gray_text);
  font-size: 12px;
  position: relative;
}

.or_text p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translate(0, -50%);
  width: 45%;
  height: 1px;
  background-color: var(--border);
}

.or_text p::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(0, -50%);
  width: 45%;
  height: 1px;
  background-color: var(--border);
}

.google_login {
  color: var(--black);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.google_login img {
  margin-right: 6px;
}

.create_account {
  margin-top: 38px;
  text-align: center;
}

.create_account a {
  font-family: 'Poppins-SemiBold';
  color: var(--dark_primary);
}

.user_sign_up_form{
  display: grid;
  grid-template-columns: repeat(2,1fr);
  column-gap: 10px;
}
.user_sign_up_form .input_box:last-child {
  grid-column: 1 / -1;
}
.auth_sign_up_right_side{
  max-width: 30%;
}

/******************************* end_auth *************************************/


/******************************* header *************************************/
.header {
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 100;
}

.header_left_section {
  padding: 28px 15px;
  border-right: 1px solid var(--border);
  padding-right: 20px;
  display: inline-block;
}

.header_left_section img {
  width: 100%;
  max-width: 260px;
}

.header_right_section {
  padding: 22px 24px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}

.header_divider {
  width: 1px;
  height: 26px;
  background: var(--border);
}

.user_profile {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 10px 6px 6px;
  border-radius: 30px;
  transition: background .15s;
}

.user_profile:hover {
  background: var(--card_bg);
}

.user_profile_avatar {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  background: var(--light_primary);
  color: var(--dark_primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins-SemiBold';
  font-size: 14px;
}

.user_profile_name {
  font-family: 'Poppins-SemiBold';
  font-size: 14.5px;
  color: var(--black);
  white-space: nowrap;
}

.user_profile_chevron {
  color: var(--gray_text);
  flex-shrink: 0;
  transition: transform .15s;
}

.user_profile:hover .user_profile_chevron {
  transform: translateY(1px);
}

.user_profile_more_options {
  position: absolute;
  width: max-content;
  min-width: 180px;
  right: 0;
  top: calc(100% + 10px);
  background-color: var(--white);
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  border-radius: 10px;
  overflow: hidden;
  transition: all .5s;
  display: block;
  opacity: 0;
  visibility: hidden;
  transform-origin: 50% 0;
  transform: scaleY(0);
  z-index: 200;
}

.user_profile:hover .user_profile_more_options {
  opacity: 1;
  visibility: visible;
  transform: scaleY(1);
}

.user_profile_more_options ul {
  margin: 0;
  padding: 0;
}

.user_profile_more_options ul li {
  list-style-type: none;
}

.user_profile_more_options ul li:last-child {
  margin-bottom: 0;
}

.user_profile_more_options ul li a {
  text-decoration: none;
  color: var(--black);
  display: inline-flex;
  padding: 10px 15px;
  border-bottom: 1px solid #dedede;
  width: 100%;
  transition: all .5s;
}
.user_profile_more_options ul li:last-child a{
  border: 0;
}
.user_profile_more_options ul li a:hover{
  background-color: var(--light_primary);
}


.user_profile_more_options ul li a img {
  width: 22px;
  margin-right: 5px;
}

/******************************* end_header *************************************/

/******************************* side_bar *************************************/
.main_wrapper {
  display: flex;
  flex-direction: row;
  height: calc(100vh - 100px);
}

.side_menu {
  width: 100%;
  max-width: 296px;
  border-right: 1px solid var(--border);
  padding-top: 12px;
}

.side_menu ul {
  margin: 0;
  padding: 0;
}

.side_menu ul li {
  list-style-type: none;
}

.side_menu ul li a {
  font-family: 'Poppins-SemiBold';
  padding: 16px 15px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-size: 18px;
  width: 100%;
  border-left: 4px solid var(--white);

}

.side_menu ul li a img {
  margin-right: 9px;
  width: 28px;
}

.side_menu ul li a.active {
  color: var(--dark_primary);
  background-color: var(--light_primary);
  border-left: 4px solid var(--dark_primary);
}

.body_content {
  padding: 12px 15px;
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: auto;
}

.risk_form {
  max-width: 760px !important;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 20px;
}

/******************************* end_side_bar *************************************/

/******************************* body_section *************************************/

.total_section_box {
  border: 1px solid var(--border);
  background-color: #F7F7F7;
  padding: 12px 20px;
  border-radius: 8px;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  column-gap: 18px;
  width: 100%;
  max-width: 253px;
}

.total_section_box img {
  width: 45px;
}

.total_section_box h3 {
  font-family: 'Poppins-ExtraBold';
  font-size: 36px;
  line-height: 1.2;
}

.total_section_box h5 {
  font-size: 18px;
}

.total_section {
  display: flex;
  column-gap: 20px;
  row-gap: 5px;
}

.body_second_left_box {
  border: 1px solid var(--border);
  background-color: #F7F7F7;
  padding: 8px 10px;
  border-radius: 8px;
  display: flex;
  width: 100%;
  max-width: 253px;
}

.data_box {
  border: none;
  outline: none;
  background-color: transparent;
  width: 100%;
}

.body_second_left_section {
  margin: 24px 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  column-gap: 10px;
  row-gap: 5px;
  flex-grow: 1;
  flex-shrink: 0;
}

.body_second_right_section a {
  background-color: var(--dark_primary);
  padding: 8px 25px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  color: var(--white);
  text-decoration: none;
  transition: all .5s;
}

.body_second_right_section a:hover {
  color: var(--white);
  background-color: var(--primary);
}

.body_second_right_section a img {
  margin-right: 8px;
}

.body_second_section {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.body_third_section table {
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 8px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  white-space: nowrap;
}

.body_third_section table thead tr th {
  background-color: #F7F7F7;
  padding: 12px 10px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.body_third_section table tbody tr td {
  padding: 12px 10px;
  color: #717171;
  border-bottom: 1px solid var(--border);
}

.body_third_section table tbody tr td:last-child {
  /* padding-left: 25px; */
  cursor: pointer;
}

.body_third_section table tbody tr:last-child td {
  border-bottom: 0;
}

.client_create_modal .modal-dialog {
  max-width: 480px;
}

.client_create_modal .modal-dialog .modal-content {
  border-radius: 30px;
}

.client_create_modal .modal-dialog .modal-header {
  display: flex;
  justify-content: center;
  background-color: var(--light_primary);
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
}

.client_create_modal .modal-dialog .modal-header h1 {
  font-family: 'Poppins-SemiBold';
  font-size: 18px;
}

.client_create_modal .input_text {
  padding-left: 0;
  width: 100%;
  background-color: transparent;
}

.create_client_form_btn {
  display: flex;
  column-gap: 6px;
  margin-top: 20px;
}

.close_btn {
  background-color: transparent;
  border: 1px solid var(--dark_primary);
  color: var(--dark_primary);
}

.close_btn:hover {
  background-color: transparent;
}

.client_create_modal .auth_btn {
  font-family: 'Poppins-SemiBold';
  font-size: 16px;
  padding: 10px 0;
}

/******************************* end_body_section *************************************/

/******************************* client_information *************************************/
.client_info_box {
  width: 100%;
  max-width: 300px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: inline-block;
}

.client_info_section {
  margin-top: 20px;
  display: flex;
  column-gap: 20px;
  row-gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;

}

.client_info_top_section {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  padding: 15px 15px;
}

.client_into_right_side img {
  cursor: pointer;
}

.client_info_basic_info {
  padding: 15px 15px;
}

.client_info_basic_info_box {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.client_info_basic_info_box:last-child {
  margin-bottom: 0;
}

.client_info_basic_info_box span {
  color: var(--gray_text);
  padding-left: 5px;
}

.client_button_section .client_btn {
  background-color: var(--dark_primary);
  color: var(--white);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  padding: 6px 30px;
  border-radius: 8px;
  justify-content: center;
}

.client_button_section .client_btn img {
  padding-right: 3px;
}

.without_bg {
  background-color: transparent !important;
  border: 1px solid var(--dark_primary) !important;
  color: var(--dark_primary) !important;
}

.client_button_section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/******************************* end_client_information *************************************/

/******************************* client_info (redesigned) *************************************/

.ci-layout {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 920px;
}

/* Profile card */
.ci-profile-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
}

.ci-profile-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid #EEF1F5;
}

.ci-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--light_primary);
  color: var(--dark_primary);
  font-family: 'Poppins-Bold';
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ci-profile-heading {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.ci-profile-name {
  font-family: 'Poppins-SemiBold';
  font-size: 17px;
  color: var(--black);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ci-profile-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--gray_text);
}

.ci-edit-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--gray_text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color .15s, color .15s, background .15s;
}

.ci-edit-btn:hover {
  border-color: var(--dark_primary);
  color: var(--dark_primary);
  background: var(--light_primary);
}

.ci-whatsapp-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1.5px solid var(--primary);
  background: var(--primary);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}

.ci-whatsapp-btn:hover {
  background: var(--dark_primary);
  border-color: var(--dark_primary);
  color: #fff;
}

.ci-whatsapp-btn--disabled,
.ci-whatsapp-btn--disabled:hover {
  background: #CBD5E1;
  border-color: #CBD5E1;
  color: #64748B;
  cursor: not-allowed;
}

/* ── WhatsApp Chat Page ── */
.wa-layout {
  display: flex;
  flex-direction: column;
  width: 50%;
  min-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 12px 32px -18px rgba(15, 23, 42, .18);
  overflow: hidden;
}

@media (max-width: 1100px) {
  .wa-layout {
    width: 100%;
    min-width: 0;
  }
}

.wa-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border-bottom: 1px solid #EEF1F5;
  background: linear-gradient(135deg, var(--light_primary) 0%, #FAFBFC 65%);
}

.wa-back-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gray_text);
  text-decoration: none;
  margin-right: 4px;
}

.wa-back-btn:hover { color: var(--dark_primary); }

.wa-header-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--light_primary);
  color: var(--dark_primary);
  font-family: 'Poppins-Bold';
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wa-header-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}

.wa-header-name {
  font-family: 'Poppins-SemiBold';
  font-size: 14.5px;
  color: var(--black);
}

.wa-header-phone {
  font-size: 12px;
  color: var(--gray_text);
}

.wa-advisor-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--dark_primary);
  background: var(--light_primary);
  border: 1px solid #C9D9FB;
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
}

.wa-advisor-tag svg { flex-shrink: 0; }

.wa-history {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  height: 480px;
  overflow-y: auto;
  background: #F8FAFC;
}

.wa-bubble {
  align-self: flex-end;
  max-width: 78%;
  background: var(--light_primary);
  border-radius: 12px 12px 2px 12px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wa-bubble-attachment {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--dark_primary);
  background: rgba(255,255,255,.7);
  border-radius: 8px;
  padding: 6px 8px;
}

.wa-bubble-text {
  font-size: 13.5px;
  color: #1E293B;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.wa-bubble-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.wa-bubble-time {
  font-size: 10.5px;
  color: #64748B;
}

.wa-status-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  padding: 2px 8px;
  border-radius: 999px;
}

.wa-status-badge--queued  { background: #F1F5F9; color: #64748B; }
.wa-status-badge--sent    { background: #DBEAFE; color: #1D4ED8; }
.wa-status-badge--delivered { background: #DCFCE7; color: #15803D; }
.wa-status-badge--read    { background: #DCFCE7; color: #15803D; }
.wa-status-badge--failed  { background: #FEE2E2; color: #B91C1C; }

.wa-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.wa-empty-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--black);
  margin: 0;
}

.wa-empty-sub {
  font-size: 12px;
  color: var(--gray_text);
  margin: 0;
}

.wa-compose {
  padding: 22px 24px 24px;
  border-top: 1px solid #EEF1F5;
  background: #FAFBFC;
}

.wa-no-templates {
  font-size: 13px;
  color: var(--gray_text);
  margin: 0;
}

.wa-compose-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.wa-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.wa-field-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #94A3B8;
}

.wa-select,
.wa-text-input,
.wa-file-input {
  height: 38px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13px;
  color: var(--black);
  background: var(--white);
}

.wa-file-input { padding: 7px 12px; height: auto; }

.wa-select:focus,
.wa-text-input:focus {
  outline: none;
  border-color: var(--dark_primary);
}

.wa-compose-actions {
  display: flex;
  justify-content: flex-end;
}

.wa-send-btn {
  height: 38px;
  padding: 0 22px;
  border-radius: 8px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}

.wa-send-btn:hover { background: var(--dark_primary); }
.wa-send-btn:disabled { opacity: .6; cursor: not-allowed; }

.ci-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}

.ci-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.ci-detail-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--card_bg);
  color: var(--dark_primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ci-detail-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ci-detail-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--gray_text);
}

.ci-detail-value {
  font-family: 'Poppins-Medium';
  font-size: 13.5px;
  color: var(--black);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Action cards grid */
.ci-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.ci-action-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}

.ci-action-card:hover {
  border-color: var(--dark_primary);
  box-shadow: 0 6px 18px rgba(14, 80, 224, .12);
  transform: translateY(-1px);
}

.ci-action-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--light_primary);
  color: var(--dark_primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ci-action-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.ci-action-title {
  font-family: 'Poppins-SemiBold';
  font-size: 14.5px;
  color: var(--black);
}

.ci-action-desc {
  font-size: 12px;
  color: var(--gray_text);
}

.ci-action-arrow {
  color: var(--border);
  flex-shrink: 0;
  transition: color .15s, transform .15s;
}

.ci-action-card:hover .ci-action-arrow {
  color: var(--dark_primary);
  transform: translateX(2px);
}

.ci-optional-badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #64748B;
  background: #F1F5F9;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

.ci-action-badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .03em;
  color: #B45309;
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ci-action-badge--soon {
  color: var(--gray_text);
  background: var(--card_bg);
  border-color: var(--border);
}

.ci-risk-badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .03em;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid transparent;
}

.ci-risk-badge--conservative {
  color: #15803D;
  background: #DCFCE7;
  border-color: #86EFAC;
}

.ci-risk-badge--moderately-conservative {
  color: #0E7490;
  background: #CFFAFE;
  border-color: #67E8F9;
}

.ci-risk-badge--moderate {
  color: #B45309;
  background: #FEF3C7;
  border-color: #FCD34D;
}

.ci-risk-badge--aggressive {
  color: #B91C1C;
  background: #FEE2E2;
  border-color: #FCA5A5;
}

.ci-risk-badge--unrated {
  color: var(--gray_text);
  background: var(--card_bg);
  border-color: var(--border);
}

.ci-risk-badge-score {
  font-weight: 600;
  opacity: .75;
  font-variant-numeric: tabular-nums;
}

.ci-action-card--disabled {
  opacity: .65;
  cursor: not-allowed;
  pointer-events: none;
}

@keyframes ci-action-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, .35); }
  50%      { box-shadow: 0 0 0 6px rgba(37, 99, 235, 0); }
}

.ci-action-card--pulse {
  animation: ci-action-pulse 1.8s ease-in-out infinite;
}

@media (max-width: 720px) {
  .ci-detail-grid    { grid-template-columns: 1fr; }
  .ci-actions-grid   { grid-template-columns: 1fr; }
}

/******************************* end_client_info (redesigned) *************************************/

/******************************* investment_decision *************************************/
.investment_decision_section {
  margin-top: 20px;
}

.investment_decision_section .nav-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 14px;
  border: 1px solid #dbe5f4;
  border-radius: 20px;
  background: linear-gradient(180deg, #fdfefe 0%, #f4f8ff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  scrollbar-width: thin;
}

.investment_decision_section .nav-tabs .nav-link {
  flex: 0 0 auto;
  border: 1px solid transparent !important;
  border-radius: 14px !important;
  padding: 12px 18px;
  color: #334155 !important;
  background: transparent;
  font-family: 'Poppins-Medium';
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  transition: all .25s ease;
  position: relative;
}

.investment_decision_section .nav-tabs .nav-link:hover {
  color: var(--dark_primary) !important;
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.12) !important;
  transform: translateY(-1px);
}

.investment_decision_section .nav-tabs .nav-link.active {
  font-family: 'Poppins-SemiBold';
  border: 1px solid #a9c4ff !important;
  background: linear-gradient(135deg, #eef4ff 0%, #dbeafe 100%);
  color: #0f3ea8 !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.12);
}

.investment_decision_section .nav-tabs .nav-link.active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 7px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb 0%, #0e50e0 100%);
}

.investment_decision_section .tab-content {
  padding: 10px;
}

.information_box {
  margin-bottom: 20px;
}

.information_box label {
  display: block;
  margin-bottom: 8px;
}

.information_input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
}

.information_input::placeholder {
  font-family: 'Poppins-Regular';
  color: var(--border);
}

.personal_information_form {
  width: 100%;
  max-width: 380px;
}

.inverstment_details_title h3 {
  font-size: 16px;
  position: relative;
  padding-left: 18px;
  margin-bottom: 20px;
}

.inverstment_details_title h3::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translate(0%, -50%);
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 100%;
  background-color: var(--dark_primary);
}

.goal_creation {
  /* max-width: 760px !important; */
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.goal_creation h3 {
  margin-bottom: 0 !important;
}

.goal_creation .goal_add {
  cursor: pointer;
}

.goal_clone {
  background-color: #F7F7F7;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  position: relative;
  margin-bottom: 20px;
}

.goal_actions {
  position: absolute;
  right: 0;
  top: 0;
  transform: translate(-50%, -50%);
  z-index: 1;
  cursor: pointer;
}

.add_more_plan {
  border: 0;
  border-radius: 8px;
  color: var(--white);
  background-color: var(--dark_primary);
  padding: 8px 40px;
  text-decoration: none;
}

.add_more_plan:hover {
  color: var(--white);
}

.add_more_plan img {
  margin-right: 5px;
}

.select_type {
  background-color: #e9e9e9 !important;
  padding: 10px 10px !important;
  border-radius: 8px;
  width: 100%;
}

.two_collapse {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.tab_navigation_btns {
  text-align: right;
}

.next_tab {
  background-color: var(--dark_primary);
  color: var(--white);
  padding: 6px 30px;
  border-radius: 8px;
  border: 0;
}

.prev_tab {
  color: var(--dark_primary);
  border: 1px solid var(--dark_primary) !important;
  padding: 6px 30px;
  border-radius: 8px;
  border: 0;
  background-color: transparent;
}

.other_buttons {
  display: flex;
  flex-direction: row;
  column-gap: 6px;
  row-gap: 4px;
  flex-wrap: wrap;
}

.other_buttons button {
  background-color: transparent;
  padding: 8px 16px;
  border: 1px solid var(--dark_primary);
  color: var(--dark_primary);
  border-radius: 8px;
  display: flex;
  white-space: nowrap;
}

.other_buttons button:last-child {
  background-color: var(--dark_primary);
  color: var(--white);
}

.other_buttons button img {
  margin-right: 6px;
}

.total_inverstment_amount h3 {
  font-family: 'Poppins-SemiBold';
  font-size: 22px;
  margin: 22px 0;
}

.total_inverstment_amount h3 span {
  background-color: var(--dark_primary);
  color: var(--white);
  padding: 6px;
}

.goal_info {
  background-color: #F9F9F9;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 20px;
  width: 100%;
}

.goal_info_box {
  padding: 12px 10px;
  border-right: 1px solid var(--border);
}

.goal_info_box:last-child {
  border-right: 0;
}

.goal_info_box h4 {
  font-size: 16px;
  color: var(--gray_text);
  margin: 0;
}

.goal_info_box h4 span {
  font-family: 'Poppins-SemiBold';
  color: var(--black);
}

.goal_inner_left_section {
  flex-grow: 1;
  flex-shrink: 0;
}

.goal_inner_description {
  display: flex;
  column-gap: 15px;
  row-gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  align-items: flex-start;
}

.goal_inner_description:last-child {
  margin-bottom: 0;
}

.goal_inner_right_section {
  padding: 17px 13px;
  border-radius: 8px;
  border: 1px solid var(--border);
  flex-grow: 5;
  flex-shrink: 0;
}

.goal_inner_description.body_third_section {
  overflow: visible;
}

.chat_boat {
  width: 100%;
  max-width: 576px;
  height: 100%;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  position: fixed;
  top: 0;
  right: -100%;
  transition: all .5s;
  z-index: 1;
  background-color: var(--white);
  padding: 15px;
}

.chat_boat_close {
  width: 30px;
  cursor: pointer;
}

.chat_input_section {
  background-color: #FAFAFA;
  border: 1px solid var(--border);
  border-radius: 30px;
  width: 100%;
  padding: 15px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
.chat_input_section img{
  position: absolute;
  right: 10px;
}
.chat_bot_input {
  background-color: transparent;
  border: 0;
  outline: none;
}

.chat_boat_main_section {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: flex-end;
  padding-bottom: 40px;
}

/******************************* end_investment_decision *************************************/

/******************************* current_portfolio *************************************/
.back_to_page {
  margin: 20px 0 30px;
}

.back_to_page a {
  background-color: var(--dark_primary);
  color: var(--white);
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
}

.back_to_page a:hover {
  color: var(--white);
}

.back_to_page a img {
  margin-right: 8px;
}

.current_portfolio_goal {
  justify-content: space-between;
  margin-bottom: 20px;
}

.current_portfolio_goal .goal_info_box {
  width: 50%;
  text-align: center;
}

.month_wise_portfolio_details h3 {
  font-size: 18px;
  position: relative;
  padding: 0 16px;
  margin-left: 16px;
  border-right: 2px solid var(--dark_primary);
  display: inline-block;
}

.month_wise_portfolio_details h3:last-child {
  border-right: 0;
}

.month_wise_portfolio_details {
  margin-top: 5px;
}

.month_wise_portfolio_details h3 span {
  font-family: 'Poppins-Bold';
}

.month_wise_portfolio_details h3::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 10px;
  height: 10px;
  background-color: var(--dark_primary);
  transform: translate(0, -50%);
}

.inverstment_portfolio {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px 20px;
  margin-top: 20px;
}

.inverstment_portfolio h3 {
  font-family: 'Poppins-SemiBold';
  font-size: 18px;
  position: relative;
  padding: 0 16px;

}

.inverstment_portfolio h3::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 10px;
  height: 10px;
  background-color: var(--dark_primary);
  transform: translate(0, -50%);
}

.inverstment_portfolio_box {
  color: var(--white);
}

.inverstment_portfolio_header {
  padding: 9px 0;
  text-align: center;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.inverstment_portfolio_header h4 {
  font-family: 'Poppins-SemiBold';
  margin: 0;
  font-size: 16px;
}

.inverstrement_portfolio_body {
  color: var(--black);
  padding: 10px 0;
  text-align: center;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.inverstrement_portfolio_body h4 {
  font-family: 'Poppins-SemiBold';
  margin: 0;
  font-size: 16px;
}

.dark_orange {
  background-color: #E87149;
}

.light_orange {
  background-color: #FEEBE3;
}

.dark_green {
  background-color: #549E67;
}

.light_green {
  background-color: #DBEDDA;
}

.dark_yellow {
  background-color: #E7A01B;
}

.light_yellow {
  background-color: #FEE9C5;
}

.dark_blue {
  background-color: #3D89D7;
}

.light_blue {
  background-color: #CBE8FB;
}

.inverstment_portfolio_section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 20px;
  row-gap: 20px;
}

.month_wise_growth_left .body_third_section table tbody tr td:last-child {
  padding-left: 12px;
}

.month_wise_growth_journery {
  display: flex;
  column-gap: 125px;
}

.mgmg_rules_box {
  margin-bottom: 6px;
}

.outcome_box {
  text-align: center;
}

.outcome_box h4 {
  font-family: 'Poppins-SemiBold';
  font-size: 18px;
  margin-top: 12px;
  margin-bottom: 0;
}

.outcome_section {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.total {
  background-color: var(--dark_primary);
  color: var(--white);
  padding: 2px 6px;
}

.wealth_table .body_third_section table tbody tr:last-child td {
  padding-left: 12px !important;
}

.wealth_total {
  color: var(--dark_primary);
}

/******************************* end_current_portfolio *************************************/

/******************************* calculator *************************************/
.calculator_box {
  padding: 18px 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 20px;
}

.calculator_first_section h3 {
  font-size: 16px;
  margin-bottom: 1px;
}

.calculator_first_section p {
  font-size: 14px;
  color: var(--gray_text);
  margin: 0;
}

.calculator_first_section {
  display: flex;
  flex-direction: row;
  align-items: center;
  column-gap: 8px;
}

.calculator_inner_left_section {
  width: 50%;
  border-right: 1px solid var(--border);
  padding-right: 100px;
}

.calculator_second_section {
  margin: 20px 0;
  border: 1px solid var(--dark_primary);
  border-radius: 8px;
  padding: 8px;
  text-align: center;
}

.calculator_second_section p {
  color: var(--gray_text);
  text-transform: uppercase;
  font-size: 14px;
  margin: 0;
}

.enter_amount {
  font-family: 'Poppins-SemiBold';
  border: 0;
  outline: none;
  text-align: center;
  font-size: 36px;
  width: 100%;
}

.calculator_third_section h4 {
  margin: 0;
  font-size: 16px;
  color: var(--gray_text);
}

.calculator_third_section {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.digit {
  font-family: 'Poppins-SemiBold';
  border: 0;
  outline: none;
  width: auto;
  text-align: right;
  font-size: 26px;
  max-width: 40px;
}

.count_number span {
  color: var(--gray_text);
}

.count_number {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.calculator label {
  margin: 0;
  font-size: 16px;
  color: var(--gray_text);
}

.value #yearValue {
  font-size: 26px;
}

.yrs {
  color: var(--gray_text);
  font-size: 16px;
  padding-left: 4px;
}

.value {
  font-family: 'Poppins-SemiBold';
  position: absolute;
  right: 0;
  top: -35px;
  font-size: 26px;
  border-bottom: 1px solid var(--border);
}

.slider-wrapper {
  position: relative;
}

input[type="range"] {
  width: 100%;
  appearance: none;
  height: 6px;
  background: #eee;
  border-radius: 5px;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  background: #2563eb;
  border-radius: 50%;
  cursor: pointer;
}



.range-labels {
  display: flex;
  justify-content: space-between;
  color: var(--gray_text);
  font-size: 16px;
}


.range_container {
  width: 100%;
  margin: 5px 0 0;
  display: inline-block;
}

/* base slider */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 10px;
  background: linear-gradient(to right,
      #2563eb 0%,
      #2563eb 16%,
      #f1f1f1 16%,
      #f1f1f1 100%);
  outline: none;
}

/* thumb */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  background: #e5e7eb;
  border-radius: 50%;
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: #e5e7eb;
  border-radius: 50%;
  cursor: pointer;
}

.calculator {
  margin-bottom: 40px;
}

.calculator:last-child {
  margin-bottom: 0;
}

.calculator_inner_section {
  display: flex;
  flex-direction: row;
}

.calculator_inner_right_section {
  width: 50%;
}

.calculator_inner_right_section p {
  font-size: 16px;
  color: var(--gray_text);
  text-align: center;
  margin-bottom: 4px;
}

.calculator_inner_right_section h3 {
  font-family: 'Poppins-SemiBold';
  text-align: center;
  font-size: 36px;
}


.chart_section {
  display: flex;
  align-items: center;
  gap: 40px;
  justify-content: center;
  margin: 20px 0;
}

.chart_box {
  width: 220px;
  height: 220px;
}

.chart_details .item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.chart_details .item span {
  width: 6px;
  height: 50px;
  display: inline-block;
}

.chart_details .blue span {
  background: #3b6ee3;
}

.chart_details .green span {
  background: #4caf50;
}

.chart_details p {
  margin: 0;
  font-size: 16px;
}

.chart_details h4 {
  margin: 5px 0 0;
  font-size: 20px;
  font-weight: 600;
}

.invest_now_btn {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
  background-color: var(--dark_primary);
  color: var(--white);
  border: 0;
  padding: 10px 50px;
  border-radius: 8px;
  font-size: 18px;
}

.invest_now_btn_two {
  border: 1px solid var(--dark_primary);
  color: var(--dark_primary);
  padding: 6px 20px;
  border-radius: 8px;
  text-decoration: none;
  margin-left: 40px;
}

.inflation_section {
  display: flex;
  flex-direction: row;
  align-items: center;
  column-gap: 20px;
}

.inflation_section h4 {
  font-size: 20px;
  margin: 0;
}

.bar_chart_section {
  width: 100%;
  max-width: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px auto;
}

.nextTab {
  padding: 6px 30px;
  background-color: var(--dark_primary);
  color: var(--white);
  border-radius: 8px;
  border: 0;
}

.prevTab {
  padding: 6px 30px;
  background-color: transparent;
  color: var(--dark_primary);
  border: 1px solid var(--dark_primary);
  border-radius: 8px;
}

.tab-navigation {
  text-align: right;
}

.goal_add_form {
  max-width: 100% !important;
  grid-template-columns: repeat(5, 1fr);
}

.add_inverstment_section {
  width: 100%;
  max-width: 700px;
}

.in_add {
  font-family: 'Poppins-Medium';
  width: auto;
  padding: 8px 18px;
  font-size: 18px;
}

.counter_input {
  display: flex;
  align-items: center;
  gap: 8px;
}

.counter_input button {
  width: 36px;
  height: 36px;
  border: 1px solid #ccc;
  background: #f5f5f5;
  font-size: 20px;
  cursor: pointer;
  border-radius: 6px;
}

.counter_input input {
  width: 60px;
  text-align: center;
  font-size: 16px;
}


.radio_group {
  display: flex;
  gap: 24px;
  margin-top: 8px;
}

.radio_item {
  position: relative;
  padding-left: 26px;
  cursor: pointer;
  font-size: 14px;
}

/* hide default radio */
.radio_item input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

/* custom circle */
.radio_item span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  border: 2px solid #0e50e0;
  border-radius: 50%;
  background: #fff;
}

/* checked state */
.radio_item input:checked+span::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  width: 8px;
  height: 8px;
  background: #0e50e0;
  border-radius: 50%;
}

.mx-width-400 {
  width: 100%;
  max-width: 400px;
}
.toggle_icon{
  width: 22px;
  margin-left: 10px;
  cursor: pointer;
  display: none;
}
.action_btn{
  padding: 8px 20px;
  border-radius: 8px;
  margin: 0 5px 0 0;
}
.search_btn{
  background-color: var(--dark_primary);
  color: var(--white);
  border: 1px solid var(--dark_primary);
  transition: all .5s;
}
.search_btn:hover{
  background-color: var(--primary);
}
.clear_btn{
  text-decoration: none;
  border: 1px solid var(--dark_primary);
  color: var(--dark_primary);
}

.cagr_calculator_box {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #dbe5f4;
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.cagr_header {
  margin-bottom: 24px;
}

.cagr_header h3 {
  font-family: 'Poppins-Bold';
  font-size: 38px;
  color: #10213d;
  margin-bottom: 8px;
}

.cagr_header p {
  max-width: 780px;
  color: #5c6b84;
  font-size: 16px;
  line-height: 1.7;
}

.cagr-calculator {
  border: 1px solid #dbe5f4;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
}

.cagr_left_section {
  padding-right: 40px;
}

.cagr_input_grid {
  display: grid;
  gap: 18px;
}

.cagr_input_card {
  border: 1px solid #b9cdf4;
  border-radius: 20px;
  padding: 18px 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.cagr_input_card label {
  display: block;
  text-align: center;
  font-size: 15px;
  color: #445169;
  margin-bottom: 10px;
}

.cagr_input_wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cagr_input_wrap span {
  font-family: 'Poppins-SemiBold';
  font-size: 26px;
  color: #17376d;
}

.cagr-input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-family: 'Poppins-SemiBold';
  font-size: 46px;
  line-height: 1.1;
  color: #17376d;
  padding: 0;
}

.cagr_duration_block {
  margin-top: 28px;
  margin-bottom: 0;
}

.cagr_duration_top {
  position: relative;
  margin-bottom: 18px;
}

.cagr_duration_top label {
  color: #10213d;
  font-size: 18px;
}

.cagr_duration_block .value {
  top: -4px;
  font-size: 20px;
  color: #10213d;
}

.cagr_right_section {
  padding-left: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cagr_result_header p {
  color: #10213d;
  font-size: 18px;
  margin-bottom: 8px;
}

.cagr_result_header h3 {
  font-family: 'Poppins-Bold';
  font-size: 58px;
  color: #17376d;
  line-height: 1;
}

.cagr_chart_section {
  gap: 34px;
  align-items: center;
}

.cagr_chart_box {
  width: 250px;
  height: 250px;
}

.cagr_chart_details .item {
  margin-bottom: 28px;
}

.cagr_chart_details .item:last-child {
  margin-bottom: 0;
}

.cagr_chart_details .item span {
  width: 8px;
  border-radius: 999px;
  height: 58px;
}

.cagr_chart_details .orange span {
  background: #ff7a1a;
}

.cagr_chart_details .blue span {
  background: #5a6fd8;
}

.cagr_chart_details p {
  text-align: left;
  color: #5c6b84;
  margin-bottom: 6px;
}

.cagr_chart_details h4 {
  color: #10213d;
  font-size: 22px;
  margin: 0;
}

.cagr_summary_grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.cagr_summary_card {
  padding: 16px 18px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid #dbe5f4;
}

.cagr_summary_card span {
  display: block;
  color: #5c6b84;
  font-size: 13px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cagr_summary_card strong {
  display: block;
  color: #10213d;
  font-size: 24px;
  line-height: 1.3;
}

.cagr_positive_summary_card {
  background: linear-gradient(135deg, #eef4ff 0%, #dfeaff 100%);
  border-color: #bfd3ff;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.12);
}

.cagr_positive_summary_card strong {
  color: #1d4ed8;
}

.reverse_cagr_box {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #dbe5f4;
  border-radius: 24px;
  padding: 12px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.reverse_cagr_shell {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  border-radius: 20px;
  padding: 20px 22px;
  border: 1px solid #dbe5f4;
}

.reverse_cagr_header {
  padding-bottom: 16px;
  border-bottom: 1px solid #e6ebf4;
  margin-bottom: 18px;
}

.reverse_cagr_eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eaf1ff;
  color: #1f4fbf;
  font-size: 12px;
  font-family: 'Poppins-SemiBold';
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.reverse_cagr_header h3 {
  font-family: 'Poppins-Bold';
  font-size: 28px;
  color: #10213d;
  margin-bottom: 6px;
}

.reverse_cagr_header p {
  color: #61708b;
  font-size: 14px;
  max-width: 760px;
}

.reverse-cagr-calculator {
  background: #fff;
  border: 1px solid #dbe5f4;
  border-radius: 20px;
  overflow: hidden;
  align-items: stretch;
}

.reverse_cagr_left {
  width: 51%;
  border-right: 1px solid #dbe5f4;
  padding: 18px 22px 20px 22px;
}

.reverse_control_group {
  margin-bottom: 24px;
}

.reverse_control_group_last {
  margin-bottom: 0;
}

.reverse_control_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.reverse_control_head label {
  color: #4b5a74;
  font-size: 15px;
}

.reverse-cagr-input {
  width: 158px;
  border: 1px solid #bfd3ff;
  border-radius: 10px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  font-family: 'Poppins-SemiBold';
  color: #17376d;
  font-size: 16px;
  text-align: right;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.reverse_cagr_left .range-labels {
  color: #5c6b84;
  margin-top: 10px;
  font-size: 14px;
}

.reverse_cagr_left input[type="range"]::-webkit-slider-thumb {
  background: #fff;
  border: 2px solid #dfe6f0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
}

.reverse_cagr_left input[type="range"]::-moz-range-thumb {
  background: #fff;
  border: 2px solid #dfe6f0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
}

.reverse_cagr_right {
  width: 49%;
  padding: 18px 22px 20px 22px;
}

.reverse_summary_strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e6ebf4;
  margin-bottom: 14px;
}

.reverse_summary_metric {
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fbff;
  border: 1px solid #dbe5f4;
}

.reverse_summary_metric span {
  display: block;
  color: #5c6b84;
  font-size: 12px;
  margin-bottom: 4px;
}

.reverse_summary_metric strong {
  display: block;
  color: #10213d;
  font-size: 22px;
  line-height: 1.2;
}

.reverse_positive_metric {
  background: linear-gradient(135deg, #eef4ff 0%, #dfeaff 100%);
  border-color: #bfd3ff;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.14);
}

.reverse_positive_metric strong {
  color: #1d4ed8;
}

.reverse_chart_wrap {
  display: flex;
  justify-content: center;
  padding: 8px 0 10px;
}

.reverse_chart_box {
  width: 210px;
  height: 210px;
  position: relative;
}

.reverse_chart_center {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 18px;
}

.reverse_chart_center span {
  color: #5c6b84;
  font-size: 12px;
  margin-bottom: 4px;
}

.reverse_chart_center strong {
  color: #10213d;
  font-size: 20px;
  line-height: 1.2;
}

.reverse_legend {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin-bottom: 16px;
}

.reverse_legend_item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reverse_legend_item span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.reverse_legend_item p {
  margin: 0;
  color: #5c6b84;
  font-size: 13px;
}

.reverse_return_legend span {
  background: #2563eb;
}

.reverse_investment_legend span {
  background: #93c5fd;
}

.reverse_stat_grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.reverse_stat_card {
  background: #f8fbff;
  border: 1px solid #dbe5f4;
  border-radius: 14px;
  padding: 12px 14px;
}

.reverse_stat_card span {
  display: block;
  font-size: 11px;
  color: #5c6b84;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.reverse_stat_card strong {
  display: block;
  color: #10213d;
  font-size: 18px;
}

.reverse_positive_card {
  background: linear-gradient(135deg, #eef4ff 0%, #dfeaff 100%);
  border-color: #bfd3ff;
}

.reverse_positive_card strong {
  color: #1d4ed8;
}

.inflation_calculator_box {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #dbe5f4;
  border-radius: 20px;
  padding: 18px;
}

.inflation_shell {
  border: 1px solid #dbe5f4;
  border-radius: 18px;
  padding: 18px 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.inflation_header {
  margin-bottom: 18px;
}

.inflation_header h3 {
  display: inline-block;
  font-family: 'Poppins-Bold';
  font-size: 28px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #0e50e0 100%);
  padding: 4px 10px;
}

.inflation-calculator {
  background: #fff;
  border-radius: 16px;
}

.inflation_left_section {
  padding-right: 28px;
}

.inflation_control_group {
  margin-bottom: 30px;
}

.inflation_control_group_last {
  margin-bottom: 22px;
}

.inflation_control_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.inflation_control_head label {
  color: #4b5a74;
  font-size: 16px;
}

.inflation_value_pill {
  min-width: 150px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 0;
  background: #eef4ff;
  color: #2563eb;
  font-family: 'Poppins-SemiBold';
  font-size: 18px;
}

.inflation-input {
  width: 100%;
  max-width: 100px;
  border: 0;
  outline: none;
  background: transparent;
  color: #2563eb;
  text-align: right;
  font-family: 'Poppins-SemiBold';
  font-size: 18px;
  padding: 0;
}

.inflation-calculator input[type="range"]::-webkit-slider-thumb {
  background: #f8fafc;
  border: 2px solid #ecf1f8;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}

.inflation-calculator input[type="range"]::-moz-range-thumb {
  background: #f8fafc;
  border: 2px solid #ecf1f8;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}

.inflation_breakdown {
  display: grid;
  gap: 12px;
  padding-top: 8px;
}

.inflation_breakdown_row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.inflation_breakdown_row span {
  color: #6b7892;
  font-size: 15px;
}

.inflation_breakdown_row strong {
  color: #213457;
  font-size: 18px;
}

.inflation_future_row strong {
  color: #2563eb;
}

.inflation_right_section {
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.inflation_legend {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.inflation_legend_item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inflation_legend_item span {
  width: 20px;
  height: 10px;
  border-radius: 999px;
}

.inflation_legend_item p {
  margin: 0;
  color: #6b7892;
  font-size: 14px;
}

.inflation_current_legend span {
  background: #dbeafe;
}

.inflation_total_legend span {
  background: #2563eb;
}

.inflation_chart_box {
  width: 220px;
  height: 220px;
  margin: 10px auto 20px;
}

.inflation_highlight_card {
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #eef4ff 0%, #dfeaff 100%);
  border: 1px solid #bfd3ff;
}

.inflation_highlight_card span {
  display: block;
  color: #3d5aa5;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.inflation_highlight_card strong {
  display: block;
  color: #1d4ed8;
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 6px;
}

.inflation_highlight_card p {
  color: #69789b;
  font-size: 14px;
  margin: 0;
}

/******************************* end_calculator *************************************/


/******************************* responsive *************************************/
@media (max-width: 1399.98px) {

  .header_left_section,
  .header_right_section {
    padding: 20px 10px;
  }

  .side_menu ul li a {
    padding: 16px 10px;
  }

  .side_menu {
    max-width: 281px;
  }

  .current_portfolio_goal .goal_info_box {
    width: auto;
  }
  .auth_sign_up_right_side {
    max-width: 40%;
  }
}

@media (max-width: 1199.98px) {
  .header_left_section img {
    max-width: 200px;
  }

  .user_profile span {
    font-size: 16px;
  }

  .side_menu {
    max-width: 221px;
  }

  .side_menu ul li a {
    padding: 12px 10px;
    font-size: 16px;
  }

  .body_content {
    padding: 15px 15px;
  }

  .body_third_section {
    overflow: auto;
  }
  .body_second_left_section{
    flex-wrap: wrap;
  }
}


@media (max-width: 991.98px) {
  .auth_wrapper .auth_left_side {
    display: none;
  }

  .auth_right_side {
    width: 90%;
  }

  .side_menu {
    position: fixed;
    height: 100vh;
    background: #fff;
    z-index: 1;
    left: -100%;
    transition: all .5s;
  }
  .side_menu.open {
    left: 0;
  }

  .header_left_section,
  .header_right_section {
    padding: 12px 10px;
  }

  .body_second_left_section {
    margin: 12px 0;
  }

  .body_second_right_section a {
    padding: 8px 14px;
  }

  .client_info_section {
    flex-direction: column;
    row-gap: 20px;
  }

  .total_inverstment_amount h3 {
    font-size: 18px;
  }

  .goal_info {
    margin-bottom: 10px;
    display: inline-block;
  }

  .goal_info_box {
    border: 0;
  }

  .current_portfolio_goal .goal_info_box {
    text-align: left;
  }

  .inverstment_portfolio {
    margin-top: 10px;
  }

  .inverstment_portfolio_section {
    grid-template-columns: repeat(2, 1fr);
  }

  .month_wise_growth_journery {
    column-gap: 25px;
  }

  .calculator_inner_section {
    flex-direction: column;
    align-items: flex-start;
  }

  .calculator_inner_left_section {
    border: 0;
    padding: 0;
    width: 100%;
  }

  .calculator_inner_right_section {
    margin-top: 20px;
    width: 100%;
  }
  .toggle_icon{
    display: inline-block;
  }
  .goal_add_form {
    grid-template-columns: repeat(3, 1fr);
  }
  .auth_sign_up_right_side {
    max-width: 100%;
  }
  .body_second_section{
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 10px;
  }
  .cagr_left_section,
  .cagr_right_section {
    width: 100%;
    padding: 0;
  }

  .cagr_right_section {
    margin-top: 28px;
  }

  .reverse_cagr_left,
  .reverse_cagr_right {
    width: 100%;
    padding: 18px;
  }

  .reverse_cagr_right {
    margin-top: 28px;
    border-top: 1px solid #dbe5f4;
  }

  .reverse_cagr_left {
    border-right: 0;
    border-bottom: 1px solid #dbe5f4;
  }

  .inflation_left_section,
  .inflation_right_section {
    width: 100%;
    padding: 0;
  }

  .inflation_right_section {
    margin-top: 22px;
  }
}

@media (max-width: 767.98px) {}

@media (max-width: 575.98px) {
  .auth_title h3 {
    font-size: 20px;
  }

  .auth_title {
    margin-bottom: 30px;
  }

  .input_filed {
    padding: 8px;
  }

  .forgot_password {
    padding: 15px 0;
  }

  .forgot_password a {
    font-size: 16px;
  }

  .auth_btn {
    /* padding: 10px 0; */
    font-size: 18px;
  }

  .input_label {
    font-size: 16px;
    margin-bottom: 6px;
  }

  .total_section {
    column-gap: 10px;
  }

  .total_section_box h3 {
    font-size: 32px;
  }

  .body_second_section {
    flex-direction: column;
    align-items: flex-start;
  }

  .body_second_left_section {
    width: 100%;
    column-gap: 10px;
  }

  .body_second_left_box {
    max-width: 50%;
  }

  .total_section_box {
    max-width: 50%;
  }

  .body_third_section {
    margin-top: 15px;
  }

  .client_button_section {
    gap: 10px;
  }

  .client_info_section {
    margin-top: 10px;
  }

  .client_info_box {
    max-width: 100%;
  }

  .risk_form {
    grid-template-columns: repeat(1, 1fr);
  }

  .investment_decision_section {
    margin-top: 10px;
  }

  .personal_information_form {
    max-width: 100%;
  }

  .information_box {
    margin-bottom: 10px;
  }

  .inverstment_details_title h3 {
    margin: 0;
    margin-bottom: 10px;
  }

  .goal_info {
    width: 100%;
  }

  .goal_info_box {
    padding: 10px 10px;
  }

  .chat_boat {
    max-width: 400px;
  }

  .inverstment_portfolio {
    padding: 10px 10px;
  }

  .month_wise_portfolio_details h3 {
    border-right: 0;
  }

  .month_wise_growth_journery {
    flex-direction: column;
  }

  .month_wise_portfolio_details h3 {
    font-size: 16px;
  }

  .outcome_section {
    flex-direction: column;
  }

  .outcome_box {
    margin-bottom: 20px;
  }

  .outcome_box h4 {
    font-size: 16px;
  }
   .client_button_section {
    grid-template-columns: repeat(1, 1fr);
    width: 100%;
  }
.chart_section {
    flex-direction: column;
  }

  .chart_details {
    display: flex;
    column-gap: 20px;
  }
  .goal_inner_description{
    margin-bottom: 0;
  }
  .header_left_section img {
    max-width: 170px;
  }
  .auth_form{
    padding-top: 100px;
  }
  .auth_logo {
    margin-top: 10px;
  }
  .user_sign_up_form{
    grid-template-columns: repeat(1, 1fr);
  }
  .body_second_left_section{
    flex-direction: column;
  }
  .body_second_left_box {
        max-width: 100%;
  }
  .cagr_calculator_box {
    padding: 18px;
  }

  .cagr_header h3 {
    font-size: 30px;
  }

  .cagr-input {
    font-size: 32px;
  }

  .cagr_result_header h3 {
    font-size: 42px;
  }

  .cagr_chart_box {
    width: 220px;
    height: 220px;
  }

  .cagr_summary_grid {
    grid-template-columns: 1fr;
  }

  .reverse_cagr_shell {
    padding: 18px;
  }

  .reverse_cagr_header h3 {
    font-size: 28px;
  }

  .reverse_control_head {
    flex-direction: column;
    align-items: stretch;
  }

  .reverse-cagr-input {
    width: 100%;
  }

  .reverse_cagr_left,
  .reverse_cagr_right {
    padding: 16px;
  }

  .reverse_summary_strip,
  .reverse_stat_grid {
    grid-template-columns: 1fr;
  }

  .reverse_chart_box {
    width: 230px;
    height: 230px;
  }

  .reverse_chart_center {
    width: 132px;
    height: 132px;
  }

  .reverse_chart_center strong,
  .reverse_summary_metric strong {
    font-size: 22px;
  }

  .reverse_legend {
    gap: 18px;
    flex-wrap: wrap;
  }

  .inflation_shell {
    padding: 16px;
  }

  .inflation_header h3 {
    font-size: 24px;
  }

  .inflation_control_head {
    flex-direction: column;
    align-items: stretch;
  }

  .inflation_value_pill {
    width: 100%;
  }

  .inflation_chart_box {
    width: 200px;
    height: 200px;
  }

  .inflation_legend {
    flex-direction: column;
    align-items: flex-start;
  }
}

.error-text {
    color: red;
    font-size: 13px;
    margin-top: 4px;
}

.is-invalid {
    border: 1px solid red;
}

#profileTabs .nav-link {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.6;
}

#profileTabs .nav-link.active {
    pointer-events: auto;
    cursor: pointer;
    opacity: 1;
}


.investment_display_row {
      display: flex;
      gap: 20px;
      flex-wrap: wrap;
}

.investment_item {
    background: #f7f7f7;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    margin: 0 10px 0 0;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    background-color: #ccc;
    border-radius: 34px;
    top: 0; left: 0; right: 0; bottom: 0;
    transition: .4s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
}
input:checked + .slider {
    background-color: #1E5BFF;
}
input:checked + .slider:before {
    transform: translateX(24px);
}
.investment-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}





@media (max-width: 425px) {
  .total_section {
    flex-direction: column;
  }

  .total_section_box {
    max-width: 100%;
  }

 
  .inverstment_portfolio_section {
    column-gap: 10px;
    row-gap: 10px;
  }

  .inverstment_portfolio_header h4 {
    font-size: 14px;
  }

  

  

  .information_box label {
    font-size: 14px;
    margin-bottom: 4px;
  }

  .information_input {
    font-size: 14px;
  }

  .prevTab {
    padding: 6px 10px;
  }

  .goal_inner_description {
    display: block;
    margin-bottom: 0;
  }

  .goal_inner_right_section {
    margin-top: 10px;
  }

  .body_third_section table {
    font-size: 14px;
  }

  .chat_boat {
    max-width: 350px;
  }

}

@media (max-width: 375px) {
      .total_inverstment_amount h3 {
        font-size: 16px;
    }
}

/******************************* end_responsive *************************************/

.decision-page {
    display: grid;
    gap: 24px;
}

.decision-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.decision-hero {
    background: linear-gradient(135deg, #0f172a 0%, #16396f 55%, #1e5bff 100%);
    border-radius: 24px;
    padding: 28px;
    color: #fff;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr);
    gap: 24px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.decision-hero h3,
.decision-hero p,
.decision-hero h4 {
    color: #fff;
    margin: 0;
}

.decision-hero-copy {
    display: grid;
    gap: 12px;
    align-content: start;
}

.decision-hero-copy p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 720px;
}

.decision-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.decision-stat {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    padding: 18px;
    backdrop-filter: blur(10px);
}

.decision-stat span {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 6px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.decision-stat strong {
    font-size: 22px;
    line-height: 1.2;
    color: #fff;
}

.investment-toggle-card {
    background: #fff;
    border-radius: 20px;
    padding: 22px;
    display: grid;
    gap: 14px;
    align-content: start;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.investment-toggle-card h4,
.investment-toggle-card p {
    margin: 0;
}

.investment-toggle-card p {
    color: #667085;
    font-size: 14px;
}

.investment-toggle-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.investment-toggle-row .toggle-label {
    font-size: 15px;
    color: #101828;
}

.goal-stack {
    display: grid;
    gap: 24px;
}

.goal-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    display: grid;
    gap: 24px;
    position: relative;
    overflow: hidden;
}

.goal-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(180deg, #1e5bff 0%, #0ea5e9 100%);
}

.goal-section-header {
    display: grid;
    gap: 16px;
    padding-bottom: 6px;
}

.goal-section-header-left {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.goal-section-copy {
    display: grid;
    gap: 4px;
    flex: 1;
}

.goal-section-copy h4,
.goal-section-copy p {
    margin: 0;
}

.goal-section-copy h4 {
    color: #0f172a;
    font-size: 22px;
}

.goal-section-copy p {
    color: #667085;
    font-size: 14px;
}

.goal-section-line {
    height: 1px;
    background: linear-gradient(90deg, rgba(30, 91, 255, 0.22) 0%, rgba(30, 91, 255, 0.04) 100%);
}

.goal-order-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    padding: 10px 14px;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.goal-card-top {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
    gap: 22px;
    align-items: start;
}

.goal-heading {
    display: grid;
    gap: 14px;
}

.goal-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    width: fit-content;
}

.goal-name-highlight {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 10px 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 24px rgba(30, 91, 255, 0.12);
}

.goal-heading h3 {
    margin: 0;
    color: #101828;
    font-size: 28px;
}

.goal-heading p {
    margin: 0;
    color: #667085;
}

.goal-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.goal-metric {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 16px;
}

.goal-metric span {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    color: #667085;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.goal-metric strong {
    display: block;
    color: #0f172a;
    font-size: 20px;
    line-height: 1.3;
}

.goal-chart-card {
    background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
    border: 1px solid #dbeafe;
    border-radius: 22px;
    padding: 20px;
    display: grid;
    gap: 18px;
    justify-items: center;
}

.goal-chart-card h4,
.goal-chart-card p {
    margin: 0;
    text-align: center;
}

.goal-chart-card p {
    color: #667085;
    font-size: 14px;
}

.goal-chart-wrap {
    width: 240px;
    height: 240px;
}

.basket-grid {
    display: grid;
    gap: 18px;
}

.basket-grid-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, #f8fbff 0%, #f4f7fc 100%);
    border: 1px solid #dbeafe;
}

.basket-grid-heading h5,
.basket-grid-heading p {
    margin: 0;
}

.basket-grid-heading h5 {
    color: #0f172a;
    font-size: 18px;
}

.basket-grid-heading p {
    color: #667085;
    font-size: 14px;
}

.basket-card {
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    overflow: hidden;
    background: #fcfdff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.basket-card-top {
    padding: 20px 22px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: #f8fbff;
    border-bottom: 1px solid #e5eefc;
}

.basket-title-group {
    display: grid;
    gap: 8px;
}

.basket-title-group h4,
.basket-title-group p {
    margin: 0;
}

.basket-title-group h4 {
    color: #101828;
    font-size: 20px;
}

.basket-title-group p {
    color: #667085;
    font-size: 14px;
}

.basket-key-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: #e0ecff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.basket-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 0 22px 20px;
}

.basket-metric {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 14px;
}

.basket-metric span {
    display: block;
    font-size: 12px;
    color: #667085;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.basket-metric strong {
    display: block;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.3;
}

.basket-funds {
    padding: 0 22px 22px;
    display: grid;
    gap: 14px;
}

.basket-funds-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.basket-funds-header h5,
.basket-funds-header p {
    margin: 0;
}

.basket-funds-header p {
    color: #667085;
    font-size: 14px;
}

.fund-table-wrap {
    overflow-x: auto;
    border: 1px solid #eaecf0;
    border-radius: 18px;
    background: #fff;
}

.fund-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
}

.fund-table thead th {
    background: #f8fafc;
    color: #475467;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 14px 16px;
    border-bottom: 1px solid #eaecf0;
    text-align: left;
}

.fund-table tbody td {
    padding: 16px;
    border-bottom: 1px solid #f2f4f7;
    vertical-align: top;
    color: #101828;
}

.fund-table tbody tr:last-child td {
    border-bottom: 0;
}

.fund-name {
    display: grid;
    gap: 4px;
}

.fund-name strong {
    color: #0f172a;
}

.fund-name span,
.muted-text {
    color: #667085;
    font-size: 13px;
}

.allocation-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #eef4ff;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 700;
}

.empty-funds {
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    padding: 20px;
    background: #fff;
    color: #667085;
    text-align: center;
}

@media (max-width: 1024px) {
    .decision-hero,
    .goal-card-top {
        grid-template-columns: 1fr;
    }

    .basket-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .decision-hero,
    .goal-card,
    .goal-chart-card,
    .basket-card-top,
    .basket-funds,
    .basket-metrics {
        padding-left: 16px;
        padding-right: 16px;
    }

    .decision-hero {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .goal-metrics,
    .basket-metrics,
    .decision-hero-stats {
        grid-template-columns: 1fr;
    }

    .goal-heading h3 {
        font-size: 22px;
    }

    .goal-section-header-left {
        align-items: flex-start;
    }

    .goal-chart-wrap {
        width: 220px;
        height: 220px;
    }
}

.goal-planning-shell {
    background: linear-gradient(135deg, #f7faff 0%, #eef4ff 45%, #fdfefe 100%);
    border: 1px solid #dbe6fb;
    border-radius: 28px;
    padding: 18px;
    box-shadow: 0 22px 48px rgba(30, 91, 255, 0.08);
}

.goal-planning-calculator-box {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    width: 100%;
}

.goal-planning-calculator-box .calculator_inner_left_section,
.goal-planning-calculator-box .calculator_inner_right_section {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(219, 230, 251, 0.95);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
    width: 100%;
    max-width: none;
    min-width: 0;
}

.goal-planning-calculator-box .calculator_inner_left_section {
    display: flex;
    flex-direction: column;
}

.goal-planning-calculator-box .calculator_inner_right_section {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.goal-planning-calculator-box .calculator_first_section {
    background: linear-gradient(135deg, #0f172a 0%, #1E5BFF 100%);
    border-radius: 22px;
    padding: 18px 20px;
    margin-bottom: 20px;
}

.goal-planning-calculator-box .calculator_first_section h3,
.goal-planning-calculator-box .calculator_first_section p {
    color: #fff;
}

.goal-planning-calculator-box .calculator_second_section,
.goal-planning-field {
    background: #f8fbff;
    border: 1px solid #dbeafe;
    border-radius: 20px;
    padding: 18px;
    margin-bottom: 18px;
}

.goal-planning-calculator-box .calculator_second_section:last-child,
.goal-planning-field:last-child {
    margin-bottom: 0;
}

.goal-planning-calculator-box .calculator_second_section p,
.goal-planning-field label {
    margin-bottom: 10px;
    display: block;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
}

.goal_future_value_input {
    width: 100%;
    border: 1px solid #cbdafc;
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.goal_future_value_input:focus {
    outline: none;
    border-color: #1E5BFF;
    box-shadow: 0 0 0 4px rgba(30, 91, 255, 0.12);
}

.goal-planning-calculator-box .value {
    min-width: 76px;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #dbe6fb;
    box-shadow: 0 6px 18px rgba(30, 91, 255, 0.08);
}


.goal-mode-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.goal-mode-option {
    position: relative;
}

.goal-mode-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.goal-mode-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    border-radius: 16px;
    border: 1px solid #d7e3ff;
    background: #fff;
    color: #334155;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.goal-mode-option input:checked + .goal-mode-card {
    background: linear-gradient(135deg, #1E5BFF 0%, #4f8dff 100%);
    border-color: #1E5BFF;
    color: #fff;
    box-shadow: 0 12px 24px rgba(30, 91, 255, 0.2);
}

.goal-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.goal-result-eyebrow {
    display: inline-flex;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(30, 91, 255, 0.1);
    color: #1E5BFF;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.goal-result-panel {
    display: grid;
    gap: 18px;
}

.goal-result-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #5b6b88;
    font-size: 13px;
    font-weight: 600;
}

.goal-result-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.12);
}

.goal-result-hero {
    padding: 24px 22px;
    border-radius: 24px;
    background: linear-gradient(135deg, #0f172a 0%, #1E5BFF 100%);
    box-shadow: 0 20px 36px rgba(30, 91, 255, 0.22);
}

.goal-planning-calculator-box .totalText {
    color: rgba(255, 255, 255, 0.84);
    margin-bottom: 10px;
    font-size: 15px;
}

.goal_mode_value {
    font-size: 42px;
    line-height: 1.05;
    color: #fff;
    margin-bottom: 0;
}

.goal-planning-loader {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin: 10px 0 18px;
    border-radius: 999px;
    background: rgba(30, 91, 255, 0.10);
    color: #1E5BFF;
    font-size: 14px;
    font-weight: 600;
}

.goal-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.goal-summary-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #dbe6fb;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.goal-summary-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 10px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e8f0ff 0%, #dbeafe 100%);
    color: #1E5BFF;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.goal-summary-card p {
    margin: 0 0 8px;
    color: #667085;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.goal-summary-card h4 {
    margin: 0;
    color: #0f172a;
    font-size: 22px;
    width: 100%;
    text-align: center;
}

.goal-calculator-note {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fbff 0%, #f3f7ff 100%);
    border: 1px dashed #c6d6fb;
    color: #52627f;
    font-size: 14px;
    line-height: 1.6;
}

.goal-calculator-note p {
    margin: 0;
}

.goal-note-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(30, 91, 255, 0.10);
    color: #1E5BFF;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.goal-planning-results {
    margin-top: 16px !important;
    background: #fff;
    border: 1px solid #dbe6fb;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.goal-planning-results table thead th {
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
    color: #274472;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.goal-planning-results table tbody tr:hover {
    background: #f8fbff;
}

.goal-planning-results table tbody td:first-child {
    font-weight: 700;
    color: #0f172a;
}

.goal-planning-loader-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(30, 91, 255, 0.22);
    border-top-color: #1E5BFF;
    border-radius: 50%;
    animation: goalPlanningSpin 0.8s linear infinite;
}

@keyframes goalPlanningSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 991px) {
    .goal-planning-calculator-box {
        grid-template-columns: 1fr;
    }

    .goal-planning-results {
        margin-top: 14px !important;
    }
}

@media (max-width: 767px) {
    .goal-planning-shell {
        padding: 14px;
        border-radius: 22px;
    }

    .goal-planning-calculator-box .calculator_inner_left_section,
    .goal-planning-calculator-box .calculator_inner_right_section {
        padding: 18px;
    }

    .goal-mode-switch,
    .goal-summary-grid {
        grid-template-columns: 1fr;
    }

    .goal_mode_value {
        font-size: 34px;
    }

    .goal-result-header {
        align-items: flex-start;
    }

    .goal-planning-results {
        border-radius: 18px;
    }
}

.dashboard-shell {
    display: grid;
    gap: 26px;
    position: relative;
}

.dashboard-shell::before {
    content: "";
    position: absolute;
    inset: 40px 0 auto;
    height: 240px;
    border-radius: 36px;
    background:
        radial-gradient(circle at top left, rgba(30, 91, 255, 0.10), transparent 44%),
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.08), transparent 36%);
    pointer-events: none;
    z-index: 0;
}

.dashboard-shell > * {
    position: relative;
    z-index: 1;
}

.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 1fr);
    gap: 20px;
    padding: 28px;
    border-radius: 28px;
    background: linear-gradient(135deg, #0f172a 0%, #17479d 45%, #1E5BFF 100%);
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.18);
}

.dashboard-kicker,
.dashboard-hero h3,
.dashboard-hero p {
    color: #fff;
    margin: 0;
}

.dashboard-kicker {
    display: inline-flex;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.dashboard-hero-copy {
    display: grid;
    gap: 14px;
    align-content: start;
}

.dashboard-hero-copy p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.82);
}

.dashboard-hero-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.dashboard-hero-tags span {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.dashboard-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.dashboard-stat-card {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

.dashboard-stat-card span,
.dashboard-stat-card strong {
    display: block;
    color: #fff;
}

.dashboard-stat-card span {
    font-size: 12px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dashboard-stat-card strong {
    font-size: 28px;
    line-height: 1.1;
}

.dashboard-search-panel {
    padding: 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #dbe6fb;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.05);
}

.dashboard-search-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.dashboard-search-input {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 280px;
    padding: 10px;
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid #d9e6ff;
}

.dashboard-search-input input {
    flex: 1;
    border: 0;
    background: transparent;
    font-size: 16px;
    color: #0f172a;
    outline: none;
}

.dashboard-search-input button,
.dashboard-clear-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    padding: 12px 18px;
    text-decoration: none;
    font-weight: 700;
}

.dashboard-search-input button {
    border: 0;
    background: linear-gradient(135deg, #1E5BFF 0%, #4f8dff 100%);
    color: #fff;
}

.dashboard-clear-link {
    color: #1E5BFF;
    background: rgba(30, 91, 255, 0.08);
}

.dashboard-insight-strip {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
    gap: 18px;
    align-items: stretch;
}

.dashboard-insight-card,
.dashboard-insight-mini {
    border-radius: 24px;
    border: 1px solid #dbe6fb;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.05);
}

.dashboard-insight-card {
    padding: 24px;
    display: grid;
    gap: 10px;
}

.dashboard-insight-card h4,
.dashboard-insight-card p {
    margin: 0;
}

.dashboard-insight-card h4 {
    color: #0f172a;
    font-size: 24px;
    line-height: 1.3;
}

.dashboard-insight-card p {
    color: #667085;
    max-width: 720px;
}

.dashboard-insight-label {
    display: inline-flex;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(30, 91, 255, 0.08);
    color: #1E5BFF;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.dashboard-insight-mini-grid {
    display: grid;
    gap: 18px;
}

.dashboard-insight-mini {
    padding: 20px;
    display: grid;
    gap: 8px;
    align-content: center;
}

.dashboard-insight-mini span,
.dashboard-insight-mini strong {
    display: block;
}

.dashboard-insight-mini span {
    color: #667085;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dashboard-insight-mini strong {
    color: #0f172a;
    font-size: 18px;
    line-height: 1.4;
}

.dashboard-product-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.dashboard-filter-chip {
    border: 1px solid #d7e3ff;
    background: #fff;
    color: #52627f;
    padding: 11px 18px;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.03);
    transition: all 0.2s ease;
}

.dashboard-filter-chip:hover {
    transform: translateY(-2px);
    border-color: #bcd2ff;
}

.dashboard-filter-chip.active {
    color: #fff;
    border-color: #1E5BFF;
    background: linear-gradient(135deg, #1E5BFF 0%, #4f8dff 100%);
    box-shadow: 0 12px 24px rgba(30, 91, 255, 0.16);
}

.dashboard-product-stack {
    display: grid;
    gap: 22px;
}

.dashboard-product-section {
    display: grid;
    gap: 18px;
}

.dashboard-section-head {
    padding: 22px 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid #dbe6fb;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.dashboard-section-head h4,
.dashboard-section-head p {
    margin: 0;
}

.dashboard-section-head h4 {
    color: #0f172a;
    margin-top: 8px;
}

.dashboard-section-head p {
    color: #667085;
    margin-top: 6px;
}

.dashboard-section-copy {
    display: grid;
    gap: 2px;
}

.dashboard-section-note {
    max-width: 320px;
    padding: 10px 14px;
    border-radius: 16px;
    background: #f8fbff;
    border: 1px solid #dbeafe;
    color: #52627f;
    font-size: 13px;
    line-height: 1.5;
}

.dashboard-section-badge {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(30, 91, 255, 0.08);
    color: #1E5BFF;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.dashboard-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.product-explorer-card {
    display: grid;
    gap: 18px;
    padding: 22px;
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 255, 0.98) 100%);
    border: 1px solid #dbe6fb;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    position: relative;
    overflow: hidden;
}

.product-explorer-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #1E5BFF 0%, #38bdf8 100%);
    opacity: 0.9;
}

.product-explorer-card:hover {
    transform: translateY(-5px);
    border-color: #c5d8ff;
    box-shadow: 0 24px 46px rgba(15, 23, 42, 0.10);
}

.product-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.product-type-pill,
.product-category-pill,
.product-detail-badge,
.product-detail-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
}

.product-type-pill {
    background: rgba(30, 91, 255, 0.08);
    color: #1E5BFF;
}

.product-category-pill,
.product-detail-category {
    background: #eff6ff;
    color: #31568e;
}

.product-explorer-card h5,
.product-explorer-card p {
    margin: 0;
}

.product-explorer-card h5 {
    color: #0f172a;
    font-size: 22px;
    line-height: 1.35;
}

.product-explorer-card p {
    color: #667085;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 4px;
    border-top: 1px solid #edf2fb;
}

.product-card-footnote {
    color: #52627f;
    font-size: 13px;
    font-weight: 600;
}

.product-metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.product-metric-card {
    padding: 15px;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
    border: 1px solid #dbeafe;
}

.product-metric-card span,
.product-metric-card strong {
    display: block;
}

.product-metric-card span {
    font-size: 12px;
    color: #667085;
    margin-bottom: 8px;
}

.product-metric-card strong {
    color: #0f172a;
    font-size: 18px;
}

.product-detail-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 12px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1E5BFF 0%, #4f8dff 100%);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 14px 26px rgba(30, 91, 255, 0.18);
}

.product-detail-link:hover {
    color: #fff;
    transform: translateY(-1px);
}

.dashboard-empty-state {
    padding: 20px;
    border-radius: 20px;
    background: #fff;
    border: 1px dashed #d1dbef;
    color: #667085;
}

.product-detail-shell {
    display: grid;
    gap: 22px;
}

.product-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 1fr);
    gap: 20px;
    padding: 28px;
    border-radius: 28px;
    background: linear-gradient(135deg, #0f172a 0%, #17479d 45%, #1E5BFF 100%);
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.18);
}

.product-detail-copy {
    display: grid;
    gap: 12px;
    align-content: start;
}

.product-detail-copy h3,
.product-detail-copy p {
    margin: 0;
    color: #fff;
}

.product-detail-badge {
    width: fit-content;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    letter-spacing: 0.04em;
}

.product-detail-category {
    width: fit-content;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.product-detail-meta-grid,
.product-detail-grid {
    display: grid;
    gap: 14px;
}

.product-detail-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-detail-meta-card,
.product-detail-info-card {
    padding: 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #dbe6fb;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.product-detail-meta-card span,
.product-detail-info-card span,
.product-detail-meta-card strong,
.product-detail-info-card strong {
    display: block;
}

.product-detail-meta-card span,
.product-detail-info-card span {
    color: #667085;
    font-size: 12px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.product-detail-meta-card strong,
.product-detail-info-card strong {
    color: #0f172a;
    font-size: 18px;
}

.product-detail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-detail-admin-style {
    gap: 28px;
    position: relative;
}

.product-detail-admin-style::before {
    content: "";
    position: absolute;
    inset: 90px 0 auto;
    height: 280px;
    border-radius: 32px;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.10), transparent 45%),
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.08), transparent 35%);
    pointer-events: none;
    z-index: 0;
}

.product-detail-admin-style > * {
    position: relative;
    z-index: 1;
}

.product-detail-intro-strip {
    padding: 22px 24px;
    border-radius: 24px;
    border: 1px solid #dbe6fb;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 248, 255, 0.96) 100%);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.05);
}

.product-detail-intro-copy {
    display: grid;
    gap: 10px;
}

.product-detail-intro-label {
    display: inline-flex;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(30, 91, 255, 0.08);
    color: #1E5BFF;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.product-detail-intro-copy h4,
.product-detail-intro-copy p {
    margin: 0;
}

.product-detail-intro-copy h4 {
    color: #0f172a;
    font-size: 24px;
}

.product-detail-intro-copy p {
    color: #667085;
    max-width: 780px;
}

.product-admin-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.product-admin-column {
    display: grid;
    gap: 22px;
    align-content: start;
}

.product-admin-card {
    background: #fff;
    border: 1px solid #dbe6fb;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.product-admin-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.10);
    border-color: #c8d9fb;
}

.product-admin-card-head {
    padding: 18px 22px;
    color: #fff;
}

.product-admin-card-head h4 {
    margin: 0;
    font-size: 18px;
    letter-spacing: 0.01em;
}

.product-admin-card-head-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.product-admin-card-primary .product-admin-card-head {
    background: linear-gradient(135deg, #1E5BFF 0%, #3b82f6 100%);
}

.product-admin-card-info .product-admin-card-head {
    background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
}

.product-admin-card-warning .product-admin-card-head {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: #0f172a;
}

.product-admin-card-success .product-admin-card-head {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
}

.product-admin-card-secondary .product-admin-card-head {
    background: linear-gradient(135deg, #475467 0%, #667085 100%);
}

.product-admin-card-dark .product-admin-card-head {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
}

.product-admin-card-danger .product-admin-card-head {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

.product-admin-info-list {
    display: grid;
    gap: 0;
    padding: 12px 22px 18px;
}

.product-admin-info-item {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid #edf2fb;
    align-items: flex-start;
}

.product-admin-info-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.product-admin-info-item span {
    color: #667085;
    font-size: 14px;
    font-weight: 600;
}

.product-admin-info-item strong {
    color: #0f172a;
    font-size: 15px;
    text-align: right;
    max-width: 62%;
    line-height: 1.5;
}

.product-admin-info-item .value-highlight {
    color: #1d4ed8;
    font-size: 16px;
    font-weight: 700;
}

.product-admin-table-wrap {
    padding: 18px 22px 22px;
    overflow-x: auto;
}

.product-admin-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
}

.product-admin-table thead th {
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
    color: #52627f;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 13px 14px;
    border-bottom: 1px solid #dbe6fb;
    text-align: left;
}

.product-admin-table tbody td {
    padding: 14px 14px;
    border-bottom: 1px solid #edf2fb;
    color: #0f172a;
    font-size: 14px;
}

.product-admin-table tbody tr:hover td {
    background: #f8fbff;
}

.product-admin-table tbody tr:last-child td {
    border-bottom: 0;
}

.product-admin-empty {
    padding: 22px;
    color: #667085;
}

.product-holding-toggle {
    border: 0;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: inherit;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

@media (max-width: 1100px) {
    .dashboard-hero,
    .product-detail-hero {
        grid-template-columns: 1fr;
    }

    .dashboard-insight-strip {
        grid-template-columns: 1fr;
    }

    .dashboard-product-grid,
    .product-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-admin-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .dashboard-hero,
    .dashboard-search-panel,
    .dashboard-insight-card,
    .dashboard-insight-mini,
    .dashboard-section-head,
    .product-explorer-card,
    .product-detail-hero {
        padding: 18px;
        border-radius: 22px;
    }

    .dashboard-stat-grid,
    .dashboard-product-grid,
    .product-metric-grid,
    .product-detail-meta-grid,
    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .product-admin-info-item {
        flex-direction: column;
        gap: 6px;
    }

    .product-admin-info-item strong {
        text-align: left;
        max-width: 100%;
    }

    .dashboard-search-input {
        min-width: 100%;
        flex-wrap: wrap;
    }

    .dashboard-hero-tags,
    .product-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}


.wealth-page {
  display: grid;
  gap: 24px;
}

.wealth-hero {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: 28px;
  background: linear-gradient(135deg, #0f172a 0%, #17479d 45%, #1E5BFF 100%);
  color: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.10);
}

.wealth-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 28%),
    radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.10), transparent 34%);
  pointer-events: none;
}

.wealth-hero-content,
.wealth-summary-top,
.wealth-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.wealth-hero h2,
.wealth-summary-card h3 {
  margin: 0 0 10px;
  font-size: 32px;
  font-family: 'Poppins-Bold';
}

.wealth-hero p,
.wealth-summary-card p {
  margin: 0;
  max-width: 680px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.84);
}

.wealth-section-tag,
.wealth-summary-eyebrow,
.wealth-pill,
.wealth-hero-badge {
  white-space: nowrap;
}

.wealth-section-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(30, 91, 255, 0.10);
  color: var(--primary);
  font-size: 11px;
  font-family: 'Poppins-Bold';
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wealth-hero .wealth-section-tag {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.wealth-hero-badge {
  min-width: 190px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  text-align: right;
}

.wealth-hero-badge span,
.wealth-summary-return span,
.wealth-metric span,
.wealth-mini-stat span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wealth-hero-badge strong,
.wealth-summary-return strong,
.wealth-metric strong,
.wealth-mini-stat strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
  font-family: 'Poppins-Bold';
}

.wealth-grid {
  display: grid;
  grid-template-columns: minmax(320px, 400px) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.wealth-panel,
.wealth-card {
  background: #fff;
  border-radius: 24px;
  border: 1px solid #dbe6fb;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
}

.wealth-form-panel {
  height: 100%;
  padding: 26px;
  position: sticky;
  top: 20px;
  border: 1px solid #d6e3ff;
  background:
    radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.10) 0%, rgba(59, 130, 246, 0) 45%),
    linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  box-shadow:
    0 24px 48px rgba(29, 78, 216, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  overflow: hidden;
}

.wealth-form-panel::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #2563eb 0%, #7fb3ff 100%);
}

.wealth-form-panel::after {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(191, 211, 255, 0.35);
  border-radius: 18px;
  pointer-events: none;
}

.wealth-form-panel > * {
  position: relative;
  z-index: 1;
}

.wealth-form-title {
  margin: 16px 0 8px;
  font-size: 28px;
  color: #0f172a;
  font-family: 'Poppins-Bold';
}

.wealth-form-subtitle {
  margin: 0 0 24px;
  color: #667085;
  line-height: 1.8;
  font-size: 14px;
}

.wealth-input-grid {
  display: grid;
  gap: 18px;
}

.wealth-field label {
  display: block;
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 14px;
  font-family: 'Poppins-SemiBold';
}

.wealth-field input,
.wealth-field select {
  width: 100%;
  height: 54px;
  border-radius: 16px;
  border: 1px solid #d7e3ff;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 0 16px;
  color: #334155;
  font-size: 15px;
}

.wealth-field input:focus,
.wealth-field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.wealth-form-hint,
.wealth-card-head p,
.wealth-company,
.wealth-muted {
  color: #667085;
  font-size: 12px;
  line-height: 1.7;
}

.wealth-submit {
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #2563EB 0%, #0e50e0 100%);
  color: #fff;
  font-size: 15px;
  font-family: 'Poppins-Bold';
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.20);
  transition: all .5s;
}

.wealth-submit:hover {
  background: linear-gradient(135deg, #0e50e0 0%, #2563EB 100%);
}

.wealth-results {
  height: 100%;
  padding: 24px;
  min-height: 640px;
  background: linear-gradient(180deg, #f8fbff 0%, #f4f8ff 100%);
}

.wealth-empty-state {
  height: 100%;
  min-height: 580px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  border: 1px dashed #c6d6fb;
  border-radius: 22px;
  background: #fff;
}

.wealth-empty-orb {
  width: 92px;
  height: 92px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eef4ff 0%, #dbeafe 100%);
  margin-bottom: 18px;
}

.wealth-empty-orb img {
  width: 40px;
  height: 40px;
}

.wealth-empty-state h4,
.wealth-card-head h4 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 24px;
  font-family: 'Poppins-Bold';
}

.wealth-empty-state p {
  max-width: 480px;
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.8;
}

.wealth-summary-card {
  padding: 26px;
  border-radius: 24px;
  background: linear-gradient(135deg, #0f172a 0%, #17479d 45%, #1E5BFF 100%);
  color: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.10);
}

.wealth-summary-eyebrow,
.wealth-pill {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-family: 'Poppins-Bold';
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wealth-summary-eyebrow {
  background: rgba(255, 255, 255, 0.12);
}

.wealth-summary-return {
  min-width: 140px;
  text-align: right;
}

.wealth-summary-return span,
.wealth-metric span {
  color: rgba(255, 255, 255, 0.72);
}

.wealth-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.wealth-metric {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.wealth-content-grid {
  display: grid;
  gap: 20px;
  margin-top: 22px;
}

.wealth-card {
  padding: 22px;
}

.wealth-card-head h4 {
  font-size: 20px;
  margin-bottom: 0;
}

.wealth-pill {
  background: #eef4ff;
  color: var(--primary);
}

.wealth-table-wrap {
  overflow-x: auto;
}

.wealth-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.wealth-table th {
  padding: 14px 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  color: #52627f;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: 'Poppins-Bold';
}

.wealth-table td {
  padding: 16px;
  border-top: 1px solid #edf2fb;
  color: #0f172a;
  font-size: 14px;
  vertical-align: top;
}

.wealth-table strong {
  font-size: 15px;
  color: #0f172a;
}

.wealth-company {
  display: block;
  margin-top: 4px;
}

.wealth-highlight {
  color: var(--primary);
  font-family: 'Poppins-Bold';
}

.wealth-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.wealth-mini-stat {
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #dbe6fb;
}

.wealth-mini-stat strong {
  color: #0f172a;
}

@media (max-width: 1199px) {
  .wealth-grid {
    grid-template-columns: 1fr;
  }

  .wealth-form-panel {
    position: static;
  }

  .wealth-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .wealth-hero,
  .wealth-form-panel,
  .wealth-results,
  .wealth-summary-card,
  .wealth-card {
    padding: 20px;
    border-radius: 22px;
  }

  .wealth-hero-content,
  .wealth-summary-top,
  .wealth-card-head {
    flex-direction: column;
  }

  .wealth-hero h2,
  .wealth-summary-card h3 {
    font-size: 26px;
  }

  .wealth-summary-return {
    text-align: left;
  }

  .wealth-metric-grid,
  .wealth-mini-grid {
    grid-template-columns: 1fr;
  }

  .wealth-empty-state {
    min-height: 420px;
  }
}


.wealth-positive-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.18);
  color: #dcfce7;
  font-size: 11px;
  font-family: 'Poppins-Bold';
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wealth-metric-positive {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.16) 0%, rgba(255, 255, 255, 0.10) 100%);
  border-color: rgba(255, 255, 255, 0.14);
}

.wealth-metric-positive::after {
  content: "";
  position: absolute;
  inset: auto -18px -24px auto;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(134, 239, 172, 0.18);
}

.wealth-metric-positive strong {
  color: #dcfce7;
}

.wealth-metric-positive small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  line-height: 1.6;
}

.wealth-metric-gain {
  box-shadow: inset 0 0 0 1px rgba(134, 239, 172, 0.20);
}

.wealth-growth-positive {
  color: #15803d !important;
  font-family: 'Poppins-Bold';
}

.wealth-return-positive {
  color: #1d4ed8 !important;
}


.wealth-mf-module {
  padding: 24px;
  margin-top: 10px;
}

.wealth-mf-head {
  margin-bottom: 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.wealth-mf-head-copy {
  max-width: 760px;
}

.wealth-mf-head-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 14px;
  min-width: 360px;
}

.wealth-mf-highlight {
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid #d9e6ff;
  background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
  box-shadow: 0 12px 28px rgba(26, 82, 173, 0.06);
}

.wealth-mf-highlight span {
  display: block;
  margin-bottom: 8px;
  color: #5f7192;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: 'Poppins-Bold';
}

.wealth-mf-highlight strong {
  display: block;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.6;
}

.wealth-mf-grid {
  display: grid;
  grid-template-columns: minmax(360px, 480px) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.wealth-mf-form-area {
  height: 100%;
  padding: 28px;
  border: 1px solid #d6e3ff;
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0) 46%),
    radial-gradient(circle at 0% 100%, rgba(56, 189, 248, 0.09) 0%, rgba(56, 189, 248, 0) 52%),
    linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
  box-shadow:
    0 26px 52px rgba(29, 78, 216, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  position: relative;
  overflow: hidden;
}

.wealth-mf-form-area::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #2563eb 0%, #7fb3ff 100%);
}

.wealth-mf-form-area::after {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(191, 211, 255, 0.45);
  border-radius: 20px;
  pointer-events: none;
}

.wealth-mf-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(191, 211, 255, 0.5);
}

.wealth-mf-toolbar-copy h4 {
  margin: 0 0 6px;
  color: #0f172a;
  font-size: 19px;
  font-family: 'Poppins-Bold';
}

.wealth-mf-toolbar-copy p {
  margin: 0;
  color: #5e7090;
  font-size: 13px;
  line-height: 1.7;
  max-width: 320px;
}

.wealth-mf-flow-note {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed #cddfff;
  background: #f3f8ff;
  color: #4d648b;
  font-size: 12px;
  line-height: 1.6;
}

.wealth-mf-live-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.wealth-mf-live-item {
  padding: 12px 14px;
  border: 1px solid #d6e3ff;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f2f8ff 100%);
  box-shadow: 0 8px 16px rgba(29, 78, 216, 0.05);
}

.wealth-mf-live-item span {
  display: block;
  color: #5f7192;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: 'Poppins-Bold';
}

.wealth-mf-live-item strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 16px;
  font-family: 'Poppins-Bold';
}

.wealth-mf-rows {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
  max-height: 420px;
  overflow: auto;
  padding-right: 6px;
  position: relative;
  z-index: 1;
}

.wealth-mf-rows::-webkit-scrollbar {
  width: 8px;
}

.wealth-mf-rows::-webkit-scrollbar-track {
  background: #eef4ff;
  border-radius: 999px;
}

.wealth-mf-rows::-webkit-scrollbar-thumb {
  background: #c3d7ff;
  border-radius: 999px;
}

.wealth-mf-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #dbe6fb;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 6px 16px rgba(26, 82, 173, 0.06);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.wealth-mf-row:focus-within {
  border-color: #9fc0ff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.14);
  transform: translateY(-1px);
}

.wealth-mf-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wealth-mf-row-title {
  color: #1e293b;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: 'Poppins-Bold';
}

.wealth-mf-selected-chip {
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid #dbe6fb;
  background: #f4f8ff;
  color: #315185;
  font-size: 12px;
  font-family: 'Poppins-SemiBold';
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wealth-mf-row:focus-within .wealth-mf-selected-chip {
  border-color: #b7ccff;
  background: #edf4ff;
  color: #24457d;
}

.wealth-mf-row-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.wealth-row-remove {
  min-width: 96px;
  height: 46px;
}

.wealth-add-row,
.wealth-row-remove {
  border: 1px solid #bfd3ff;
  background: #eef4ff;
  color: #1d4ed8;
  border-radius: 14px;
  padding: 10px 16px;
  font-family: 'Poppins-Bold';
  font-size: 13px;
  transition: all 0.2s ease;
}

.wealth-add-row:hover,
.wealth-row-remove:hover:not([disabled]) {
  background: #dfeaff;
  border-color: #a8c3ff;
}

.wealth-row-remove[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.wealth-mf-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.wealth-row-clear {
  border: 1px solid #cddfff;
  background: #f7fbff;
  color: #36598d;
  border-radius: 14px;
  padding: 10px 14px;
  font-family: 'Poppins-Bold';
  font-size: 13px;
  min-width: 112px;
}

.wealth-row-clear:hover {
  background: #edf5ff;
}

.wealth-mf-row-field {
  margin: 0;
}

.wealth-mf-row-field label {
  display: block;
  margin-bottom: 10px;
  color: #0f172a;
  font-size: 14px;
  font-family: 'Poppins-Bold';
}

.wealth-mf-select-field,
.wealth-mf-amount-field {
  min-width: 0;
}

.wealth-mf-amount-field input {
  width: 100%;
}

.wealth-mf-results-area {
  min-width: 0;
  height: 100%;
}

.wealth-mf-results-shell {
  height: 100%;
  padding: 22px;
  border: 1px solid #dbe6fb;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.wealth-mf-empty-state {
  min-height: 100%;
  border: 1px dashed #cfe0ff;
  background: radial-gradient(circle at top, rgba(236, 244, 255, 0.9) 0%, #ffffff 65%);
}

.wealth-mf-summary-card {
  background: linear-gradient(135deg, #0f172a 0%, #17479d 45%, #2563EB 100%);
  margin-bottom: 22px;
}

.wealth-mf-tab-wrap {
  margin-bottom: 14px;
}

.wealth-mf-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.wealth-mf-tab {
  border: 1px solid #cfe0ff;
  background: #eef4ff;
  color: #1d4ed8;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 12px;
  font-family: 'Poppins-Bold';
  white-space: nowrap;
}

.wealth-mf-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
}

.wealth-compare-module {
  margin-top: 24px;
  padding: 24px;
}

.wealth-compare-grid {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 22px;
}

.wealth-compare-form {
  height: 100%;
}

.wealth-compare-results-shell {
  min-width: 0;
}

.wealth-compare-empty-state {
  min-height: 360px;
}

.wealth-compare-summary-card {
  margin-bottom: 18px;
}

.wealth-compare-summary-card .wealth-summary-top {
  align-items: flex-start;
  gap: 18px;
}

.wealth-compare-summary-main {
  width: 100%;
}

.wealth-compare-title {
  margin: 8px 0 8px;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
  color: #ffffff;
  font-family: 'Poppins-Bold';
}

.wealth-compare-kicker {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'Poppins-Bold';
}

.wealth-compare-name-pair {
  display: block;
  width: 100%;
  max-width: 760px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.08) 100%);
  color: #ffffff;
  font-size: 16px;
  font-family: 'Poppins-Bold';
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#compareSummaryText {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  line-height: 1.7;
  max-width: 760px;
}

.wealth-compare-summary-card .wealth-summary-return {
  min-width: 170px;
}

.wealth-compare-summary-card .wealth-summary-return strong {
  font-size: 18px;
  line-height: 1.4;
  word-break: break-word;
}


.wealth-compare-tab-wrap {
  margin-bottom: 14px;
}

.wealth-compare-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.wealth-compare-tab {
  border: 1px solid #cfe0ff;
  background: #eef4ff;
  color: #1d4ed8;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 12px;
  font-family: 'Poppins-Bold';
  white-space: nowrap;
}

.wealth-compare-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
}

.wealth-compare-panel {
  display: none;
}

.wealth-compare-panel.active {
  display: block;
}

.wealth-compare-best {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e5f8ee;
  color: #15803d;
  font-size: 11px;
  font-family: 'Poppins-Bold';
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.wealth-compare-tie {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: #1d4ed8;
  font-size: 11px;
  font-family: 'Poppins-Bold';
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.wealth-mf-panel {
  display: none;
}

.wealth-mf-panel.active {
  display: block;
}

.wealth-mf-metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1199px) {
  .wealth-mf-head,
  .wealth-mf-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .wealth-mf-head-highlights {
    min-width: 0;
    width: 100%;
  }

  .wealth-mf-grid {
    grid-template-columns: 1fr;
  }

  .wealth-compare-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .wealth-mf-module,
  .wealth-mf-form-area,
  .wealth-mf-results-shell {
    height: auto;
    padding: 20px;
    border-radius: 20px;
  }

  .wealth-mf-head-highlights,
  .wealth-mf-toolbar,
  .wealth-mf-live-summary,
  .wealth-mf-row-side,
  .wealth-mf-metric-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .wealth-mf-rows {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .wealth-mf-row {
    padding: 14px;
  }

  .wealth-row-remove,
  .wealth-add-row,
  .wealth-row-clear {
    width: 100%;
  }

  .wealth-mf-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .wealth-compare-module {
    padding: 20px;
    border-radius: 20px;
  }


}


.wealth-search-select {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #dce7ff;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.wealth-search-select .mf-fund-search {
  width: 100%;
  height: 48px;
  border-radius: 14px;
  border: 1px solid #d7e3ff;
  background: #ffffff;
  padding: 0 14px;
  color: #334155;
  font-size: 14px;
}

.wealth-search-select .mf-fund-search:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.wealth-mf-search-select,
.wealth-portfolio-search-select {
  position: relative;
}

.wealth-mf-search-select .mf-fund-select,
.wealth-portfolio-search-select .p1-fund-select,
.wealth-portfolio-search-select .p2-fund-select {
  display: none;
}

.wealth-mf-suggest-list,
.wealth-portfolio-suggest-list {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 16px;
  right: 16px;
  z-index: 25;
  border: 1px solid #d7e3ff;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(21, 61, 142, 0.12);
  max-height: 240px;
  overflow: auto;
  padding: 6px;
}

.wealth-mf-suggest-item,
.wealth-portfolio-suggest-item {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: #0d2148;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.wealth-mf-suggest-item:hover,
.wealth-mf-suggest-item.is-active,
.wealth-portfolio-suggest-item:hover,
.wealth-portfolio-suggest-item.is-active {
  background: #eff4ff;
  color: #1f57d6;
}

.wealth-search-select .mf-fund-select,
.wealth-mf-amount-field input {
  height: 56px;
  border-radius: 16px;
  border: 1px solid #bfd3ff;
  background: #fff;
  padding: 0 16px;
  color: #0f172a;
  font-family: 'Poppins-SemiBold';
}

.wealth-search-select .mf-fund-select:focus,
.wealth-mf-amount-field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.wealth-mf-select-field label {
  margin-bottom: 10px;
}







.wealth-portfolio-compare-module {
  margin-top: 24px;
}

.wealth-client-compare-grid {
  display: grid;
  grid-template-columns: minmax(380px, 520px) minmax(0, 1fr);
  gap: 22px;
}

.wealth-client-portfolio-input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.wealth-client-portfolio-box {
  border: 1px solid #dbe6fb;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 14px;
}

.wealth-client-portfolio-box h4 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #0f172a;
  font-family: 'Poppins-Bold';
}

.wealth-client-portfolio-box .wealth-field {
  margin-bottom: 10px;
}

.wealth-client-portfolio-box .wealth-field:last-child {
  margin-bottom: 0;
}

.wealth-client-compare-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.wealth-client-compare-tab {
  border: 1px solid #cfe0ff;
  background: #eef4ff;
  color: #1d4ed8;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 12px;
  font-family: 'Poppins-Bold';
  white-space: nowrap;
}

.wealth-client-compare-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
}

.wealth-client-compare-panel {
  display: none;
}

.wealth-client-compare-panel.active {
  display: block;
}

@media (max-width: 1199px) {
  .wealth-client-compare-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .wealth-client-portfolio-input-grid {
    grid-template-columns: 1fr;
  }
}

.wealth-portfolio-compare-module .wealth-compare-summary-card {
  position: relative;
  overflow: hidden;
}

.wealth-portfolio-compare-module .wealth-compare-summary-card::after {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.20);
  border-radius: 16px;
  pointer-events: none;
}

.wealth-portfolio-compare-module .wealth-compare-summary-main {
  position: relative;
  z-index: 1;
}

.wealth-portfolio-compare-module .wealth-compare-title {
  margin-top: 10px;
  color: #ffffff;
}

.wealth-portfolio-compare-module #portfolioCompareTitle {
  margin-top: 10px;
  max-width: 100%;
  font-size: 17px;
  line-height: 1.45;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.10) 100%);
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22);
}

.wealth-portfolio-compare-module #portfolioCompareSummaryText {
  margin-top: 10px;
  color: rgba(255,255,255,0.86);
  max-width: 760px;
}



.wealth-portfolio-analyzer-module .wealth-mf-form-area {
    position: relative;
}

.wealth-analyzer-search-select {
    position: relative;
}

.wealth-analyzer-suggest-list {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 25;
    border: 1px solid #d7e3ff;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 14px 28px rgba(21, 61, 142, 0.12);
    max-height: 240px;
    overflow: auto;
    padding: 6px;
}

.wealth-analyzer-suggest-item {
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    color: #0d2148;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
}

.wealth-analyzer-suggest-item:hover {
    background: #eff4ff;
    color: #1f57d6;
}

.wealth-analyzer-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid #d7e3ff;
    background: #f7faff;
    color: #5a6f96;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wealth-analyzer-tab.active {
    background: #1f57d6;
    border-color: #1f57d6;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(31, 87, 214, 0.18);
}

.wealth-analyzer-panel {
    display: none;
}

.wealth-analyzer-panel.active {
    display: block;
}

.wealth-portfolio-analyzer-module #portfolioAnalyzerTitle {
    max-width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
}

.wealth-analyzer-title-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
    margin-top: 12px;
}

.wealth-analyzer-title-card {
    min-width: 0;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.09) 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}

.wealth-analyzer-title-label {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    font-family: 'Poppins-Bold';
}

.wealth-analyzer-title-names {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wealth-analyzer-name-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 13px;
    line-height: 1.35;
    font-family: 'Poppins-Bold';
}

.wealth-analyzer-title-divider {
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: 'Poppins-Bold';
}

@media (max-width: 767px) {
    .wealth-analyzer-title-grid {
        grid-template-columns: 1fr;
    }

    .wealth-analyzer-title-divider {
        justify-self: center;
    }
}

.wealth-analyzer-common-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.wealth-analyzer-common-card {
    border-radius: 18px;
}

@media (max-width: 991px) {
    .wealth-analyzer-common-grid {
        grid-template-columns: 1fr;
    }
}

.wealth-compare-group-row td {
    background: #eaf2ff;
    color: #1f57d6;
    font-size: 12px;
    padding: 7px 14px;
    letter-spacing: 0.03em;
}

.wealth-portfolio-compare-module .wealth-compare-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}

.wealth-portfolio-compare-module .wealth-compare-form,
.wealth-portfolio-compare-module .wealth-compare-results-shell,
.wealth-portfolio-compare-module .wealth-mf-form-area,
.wealth-portfolio-compare-module .wealth-mf-results-shell {
    width: 100%;
    max-width: 100%;
}

.wealth-portfolio-compare-module .wealth-mf-results-shell {
    height: auto;
    margin-top: 0;
}

.wealth-portfolio-compare-module .wealth-empty-state,
.wealth-portfolio-compare-module #portfolioCompareResultsContent {
    width: 100%;
}

.wealth-portfolio-analyzer-module .wealth-compare-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}

.wealth-portfolio-analyzer-module .wealth-compare-form,
.wealth-portfolio-analyzer-module .wealth-compare-results-shell,
.wealth-portfolio-analyzer-module .wealth-mf-form-area,
.wealth-portfolio-analyzer-module .wealth-mf-results-shell {
    width: 100%;
    max-width: 100%;
}

.wealth-portfolio-analyzer-module .wealth-mf-form-area {
    padding-bottom: 28px;
}

.wealth-portfolio-analyzer-module .wealth-mf-results-shell {
    margin-top: 0;
}

.wealth-portfolio-analyzer-module .wealth-empty-state,
.wealth-portfolio-analyzer-module #portfolioAnalyzerResultsContent {
    width: 100%;
}

.wealth-portfolio-analyzer-module .wealth-analyzer-common-grid {
    grid-template-columns: 1fr;
}



.wealth-analyzer-toolbar {
    align-items: center;
    margin-bottom: 18px;
    padding: 16px 18px;
    border: 1px solid #d8e4fb;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f4f8ff 100%);
    box-shadow: 0 12px 28px rgba(20, 53, 122, 0.07);
    margin-top: 15px;
}

.wealth-analyzer-toolbar .wealth-mf-toolbar-copy {
    min-width: 0;
}

.wealth-analyzer-toolbar-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 10px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: #eaf2ff;
    color: #1f57d6;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: 'Poppins-Bold';
}

.wealth-analyzer-toolbar .wealth-mf-toolbar-copy h4 {
    margin-bottom: 4px;
}

.wealth-analyzer-toolbar .wealth-mf-toolbar-copy p {
    max-width: 460px;
    color: #5c6f93;
}

.wealth-analyzer-add-row {
    min-width: 132px;
    min-height: 48px;
    border-radius: 14px;
    box-shadow: 0 10px 22px rgba(31, 87, 214, 0.16);
}

@media (max-width: 767px) {
    .wealth-analyzer-toolbar {
        padding: 14px;
    }

    .wealth-analyzer-add-row {
        width: 100%;
    }
}

/* ===== CONSOLIDATED FUND SUMMARY (styles are inline in blade) ===== */
.fund-summary-section {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e8edf4;
    margin: 24px 0;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.fund-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    gap: 16px;
    flex-wrap: wrap;
}

.fund-summary-title-group h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.fund-summary-title-group p {
    color: rgba(255,255,255,0.65);
    font-size: 13px;
    margin: 0;
}

.fund-summary-totals {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.fund-summary-stat {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 10px 18px;
    text-align: center;
    min-width: 120px;
}

.fund-summary-stat span {
    display: block;
    color: rgba(255,255,255,0.65);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 4px;
}

.fund-summary-stat strong {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.fund-summary-table-wrap {
    overflow-x: auto;
    padding: 0;
}

.fund-summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.fund-summary-table thead tr {
    background: #f8fafc;
    border-bottom: 2px solid #e8edf4;
}

.fund-summary-table thead th {
    padding: 13px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #64748b;
    white-space: nowrap;
}

.fund-summary-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}

.fund-summary-table tbody tr:last-child {
    border-bottom: none;
}

.fund-summary-table tbody tr:hover {
    background: #f8fafc;
}

.fund-summary-table td {
    padding: 14px 16px;
    vertical-align: middle;
    color: #1e293b;
}

.fund-summary-index {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    width: 36px;
    text-align: center;
}

.fund-summary-name {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.fund-summary-name strong {
    font-size: 13.5px;
    color: #0f172a;
    font-weight: 600;
}

.fund-multi-goal-badge {
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid #bfdbfe;
    white-space: nowrap;
}

.fund-summary-company {
    color: #64748b;
    font-size: 12.5px;
}

.fund-summary-amount {
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}

.fund-summary-pct {
    min-width: 130px;
}

.fund-pct-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fund-pct-wrap span {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    min-width: 36px;
}

.fund-pct-bar {
    flex: 1;
    height: 6px;
    background: #e8edf4;
    border-radius: 10px;
    overflow: hidden;
    min-width: 60px;
}

.fund-pct-fill {
    height: 100%;
    background: linear-gradient(90deg, #1E5BFF, #4CAF50);
    border-radius: 10px;
    transition: width 0.4s ease;
}

.fund-goal-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.fund-goal-tag {
    background: #f0fdf4;
    color: #15803d;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid #bbf7d0;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .fund-summary-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .fund-summary-totals {
        width: 100%;
    }

    .fund-summary-stat {
        flex: 1;
        min-width: 0;
    }
}

/* ── Create Client Modal ────────────────────────────── */
.ccm-dialog { max-width: 680px; width: 100%; }

.ccm-content {
    border: none;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
}

/* Header */
.ccm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1E3A5F;
    padding: 18px 24px;
}
.ccm-header-left { display: flex; align-items: center; gap: 14px; }
.ccm-header-icon {
    width: 38px; height: 38px;
    background: rgba(255,255,255,.12);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.ccm-title  { margin: 0; font-size: 15px; font-weight: 700; color: #fff; }
.ccm-subtitle { margin: 2px 0 0; font-size: 11.5px; color: rgba(255,255,255,.6); }
.ccm-close {
    background: rgba(255,255,255,.1);
    border: none;
    border-radius: 8px;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.8);
    cursor: pointer;
    transition: background .15s;
}
.ccm-close:hover { background: rgba(255,255,255,.2); color: #fff; }

/* Body */
.ccm-body { background: #F8FAFC; padding: 22px 24px 0; }

/* Search */
.ccm-search-wrap { margin-bottom: 18px; }
.ccm-search-inner { position: relative; }
.ccm-search-icon {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    color: #94A3B8; pointer-events: none;
}
.ccm-search-input {
    width: 100%;
    padding: 10px 14px 10px 36px;
    border: 1.5px solid #E2E8F0;
    border-radius: 8px;
    font-size: 13.5px;
    background: #fff;
    color: #1E293B;
    outline: none;
    transition: border-color .15s;
    box-sizing: border-box;
}
.ccm-search-input:focus { border-color: #2563EB; }
.ccm-search-hint { font-size: 11.5px; color: #94A3B8; margin: 5px 0 0; }

/* Search dropdown */
#crmSearchResults {
    position: absolute;
    top: calc(100% + 2px);
    left: 0; right: 0;
    background: #fff;
    border: 1.5px solid #E2E8F0;
    border-radius: 8px;
    max-height: 210px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
#crmSearchResults .crm-item {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #F1F5F9;
    transition: background .1s;
}
#crmSearchResults .crm-item:last-child { border-bottom: none; }
#crmSearchResults .crm-item:hover { background: #EFF6FF; }
.crm-name { font-size: 13px; font-weight: 600; color: #1E293B; }
.crm-sub  { font-size: 11px; color: #94A3B8; margin-top: 1px; }
.crm-no-result { padding: 12px 14px; font-size: 13px; color: #94A3B8; }

/* Field label */
.ccm-field-label {
    display: flex; align-items: center; gap: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #64748B;
    margin-bottom: 6px;
}

/* 2-col grid */
.ccm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
}
.ccm-field { display: flex; flex-direction: column; }
.ccm-full  { grid-column: 1 / -1; }

/* Inputs */
.ccm-input {
    padding: 10px 13px;
    border: 1.5px solid #E2E8F0;
    border-radius: 8px;
    font-size: 13.5px;
    color: #1E293B;
    background: #fff;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
    box-sizing: border-box;
}
.ccm-input:focus {
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.ccm-input::placeholder { color: #CBD5E1; }

/* PAN display */
.ccm-readonly-badge {
    background: #DBEAFE;
    color: #1D4ED8;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 2px 6px;
    border-radius: 4px;
}
.ccm-optional-badge {
    background: #F1F5F9;
    color: #64748B;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 2px 6px;
    border-radius: 4px;
}
.ccm-pan-display {
    display: flex; align-items: center; gap: 8px;
    background: #EFF6FF;
    border: 1.5px solid #BFDBFE;
    border-radius: 8px;
    padding: 10px 13px;
    min-height: 42px;
}
.ccm-pan-display span {
    font-size: 13.5px;
    font-weight: 700;
    color: #1D4ED8;
    letter-spacing: 1.5px;
    font-family: 'Courier New', monospace;
}

/* Errors */
.ccm-errors { font-size: 13px; border-radius: 8px; margin-bottom: 4px; }

/* Footer */
.ccm-footer {
    display: flex; justify-content: flex-end; align-items: center;
    gap: 10px;
    padding: 18px 0 22px;
    margin-top: 18px;
    border-top: 1px solid #E8EDF2;
}
.ccm-btn-cancel {
    padding: 10px 22px;
    border: 1.5px solid #CBD5E1;
    border-radius: 8px;
    background: #fff;
    color: #64748B;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s, color .15s;
}
.ccm-btn-cancel:hover { border-color: #94A3B8; color: #334155; }
.ccm-btn-create {
    display: flex; align-items: center; gap: 7px;
    padding: 10px 24px;
    background: #2563EB;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, box-shadow .15s;
}
.ccm-btn-create:hover { background: #1D4ED8; box-shadow: 0 4px 14px rgba(37,99,235,.35); }
.ccm-btn-create:disabled { background: #93C5FD; cursor: not-allowed; box-shadow: none; }

@media (max-width: 600px) {
    .ccm-grid { grid-template-columns: 1fr; }
    .ccm-full  { grid-column: 1; }
    .ccm-dialog { max-width: 95vw; }
}

/* ── Client Portfolio — Scheme-wise List ─────────────── */

/* Sticky group: Back link + page header + summary cards + tabs nav stay
   pinned while the tab content below scrolls (.body_content is the actual
   scrolling ancestor, see Master.blade.php). */
.pf-sticky-header {
    background: #fff;
    padding-bottom: 4px;
}

/* JS-managed fixed positioning (see PageLevelScript) instead of position:sticky.
   Chromium has a long-standing bug where a position:sticky element paired
   with GPU-accelerated canvas content (Chart.js) below it leaves a stale
   "ghost" of scrolled-past chart content bleeding through above the sticky
   element — no CSS-only fix (layer promotion, isolation, containment)
   reliably resolves it. A JS class-toggle to real position:fixed sidesteps
   the bug entirely, since fixed positioning doesn't use the same scroll-
   compensation compositor path that sticky does. */
/* .pf-sticky-header--fixed {
    position: fixed;
    top: 90px;
    z-index: 50;
    box-shadow: 0 4px 12px -6px rgba(15, 23, 42, .18);
} */

.pf-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 12px;
}

/* Tabbed navigation for the portfolio detail sections */
.pf-tabs-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 44px;
    flex-shrink: 0;
    border-bottom: 1.5px solid #E2E8F0;
    margin-bottom: 20px;
    overflow-x: auto;
}

.pf-tab-btn {
    flex-shrink: 0;
    background: none;
    border: none;
    border-bottom: 2.5px solid transparent;
    padding: 10px 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: #64748B;
    cursor: pointer;
    white-space: nowrap;
    transition: color .15s, border-color .15s;
}

.pf-tab-btn:hover {
    color: #1E293B;
}

.pf-tab-btn--active {
    color: #2563EB;
    border-bottom-color: #2563EB;
}

.pf-tab-panel {
    display: none;
}

.pf-tab-panel--active {
    display: block;
}
.pf-header-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pf-page-title  { margin: 0; font-size: 20px; font-weight: 700; color: #1E293B; }
.pf-client-name {
    font-size: 13px;
    color: #64748B;
    background: #F1F5F9;
    padding: 3px 10px;
    border-radius: 20px;
}

/* Sync button */
.pf-sync-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    background: #2563EB;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, box-shadow .15s;
}
.pf-sync-btn:hover    { background: #1D4ED8; box-shadow: 0 4px 14px rgba(37,99,235,.3); }
.pf-sync-btn:disabled { background: #93C5FD; cursor: not-allowed; }

@keyframes pf-rotate { to { transform: rotate(360deg); } }
.pf-spin { animation: pf-rotate .8s linear infinite; display: inline-block; }

/* Summary cards */
.pf-summary-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}
.pf-summary-card {
    background: #fff;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    padding: 16px 18px;
}
.pf-summary-card--current { border-color: #BFDBFE; background: #EFF6FF; }
.pf-gain-pos { border-color: #BBF7D0; background: #F0FDF4; }
.pf-gain-neg { border-color: #FECACA; background: #FEF2F2; }
.pf-summary-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #94A3B8;
    margin-bottom: 6px;
}
.pf-summary-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #1E293B;
    font-variant-numeric: tabular-nums;
}
.pf-summary-pct { font-size: 13px; font-weight: 500; color: #64748B; }

/* Loader overlay */
.pf-loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pf-loader-box {
    background: #fff;
    border-radius: 16px;
    padding: 36px 48px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.pf-spinner {
    width: 44px; height: 44px;
    border: 4px solid #E2E8F0;
    border-top-color: #2563EB;
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: pf-rotate .8s linear infinite;
}
.pf-loader-text { font-size: 15px; font-weight: 600; color: #1E293B; margin: 0 0 6px; }
.pf-loader-sub  { font-size: 12.5px; color: #94A3B8; margin: 0; }

/* Table wrapper */
.pf-table-wrap { position: relative; }

/* Scheme cell */
.pf-scheme-cell { display: flex; flex-direction: column; gap: 2px; }
.pf-scheme-name { font-size: 13px; font-weight: 600; color: #1E293B; line-height: 1.3; }
.pf-amc-name    { font-size: 11.5px; color: #64748B; }
.pf-folio       { font-size: 11px; color: #94A3B8; }

/* Category pill */
.pf-category-pill {
    display: inline-block;
    background: #F1F5F9;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Amount cell */
.pf-amount-cell { display: flex; flex-direction: column; gap: 2px; }
.pf-amount-cell strong { font-size: 13.5px; font-variant-numeric: tabular-nums; }
.pf-units     { font-size: 11px; color: #94A3B8; }
.pf-day-change { font-size: 11.5px; font-weight: 600; }

/* Colors */
.pf-text-green { color: #16A34A; }
.pf-text-red   { color: #DC2626; }
.pf-text-muted { color: #CBD5E1; }

/* XIRR */
.pf-xirr { font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* % Allocation bar */
.pf-alloc-cell { display: flex; flex-direction: column; gap: 4px; }
.pf-alloc-pct  { font-size: 13px; font-weight: 600; color: #1E293B; }
.pf-alloc-bar  { height: 4px; background: #E2E8F0; border-radius: 99px; width: 80px; }
.pf-alloc-fill { height: 100%; background: #2563EB; border-radius: 99px; transition: width .3s; }

/* Scheme-wise Holdings — compact density (CSS only, same columns, same data,
   just tighter sizing so it fits without horizontal scroll). */
.pf-schemes-table.body_third_section table,
table.pf-schemes-table {
    white-space: normal;
}
.pf-schemes-table thead tr th {
    padding: 8px 6px;
    font-size: 12px;
}
.pf-schemes-table tbody tr td {
    padding: 8px 6px;
}
.pf-schemes-table .pf-scheme-name { font-size: 12px; }
.pf-schemes-table .pf-amc-name,
.pf-schemes-table .pf-folio { font-size: 10.5px; }
.pf-schemes-table .pf-category-pill { font-size: 10px; padding: 2px 7px; }
.pf-schemes-table .pf-amount-cell strong,
.pf-schemes-table .pf-xirr { font-size: 12px; }
.pf-schemes-table .pf-units { font-size: 10px; }
.pf-schemes-table .pf-alloc-pct { font-size: 12px; }
.pf-schemes-table .pf-alloc-bar { width: 50px; }
.pf-schemes-table td, .pf-schemes-table th {
    font-size: 12px;
}

/* Empty state */
.pf-empty-state {
    padding: 60px 20px;
    text-align: center;
}
.pf-empty-title { font-size: 15px; font-weight: 600; color: #94A3B8; margin: 14px 0 6px; }
.pf-empty-sub   { font-size: 13px; color: #CBD5E1; margin: 0; }

@media (max-width: 768px) {
    .pf-summary-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .pf-summary-row { grid-template-columns: 1fr; }
}

/* ── Portfolio Dashboard — Analytics & Charts ─────────────── */

/* Unmatched badge in header */
.pf-unmatched-badge {
    font-size: 11.5px;
    font-weight: 600;
    color: #92400E;
    background: #FEF3C7;
    border: 1px solid #FCD34D;
    padding: 3px 10px;
    border-radius: 20px;
}

/* Analytics row: doughnut + 2 stat cards */
.pf-analytics-row {
    display: grid;
    grid-template-columns: 320px 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.pf-analytics-card {
    background: #fff;
    border: 1.5px solid #E2E8F0;
    border-radius: 14px;
    padding: 20px 22px;
}

.pf-analytics-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #94A3B8;
    margin-bottom: 14px;
}

/* Allocation by Category / AMC / Asset Class tables */
.pf-alloc-tables-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.pf-alloc-table-card {
    background: #fff;
    border: 1.5px solid #E2E8F0;
    border-radius: 14px;
    padding: 20px 22px;
    min-width: 0;
}

.pf-alloc-table-wrap { overflow-x: auto; }

.pf-alloc-breakdown-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    white-space: nowrap;
}

.pf-alloc-breakdown-table thead th {
    text-align: left;
    padding: 8px 6px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #94A3B8;
    border-bottom: 1.5px solid #E2E8F0;
}

.pf-alloc-breakdown-table tbody td {
    padding: 8px 6px;
    color: #475569;
    border-bottom: 1px solid #F1F5F9;
    font-variant-numeric: tabular-nums;
}

.pf-alloc-total-row td {
    font-weight: 700;
    color: var(--dark_primary);
    background: var(--light_primary);
    border-bottom: none;
}

@media (max-width: 992px) {
    .pf-alloc-tables-row { grid-template-columns: 1fr; }
}

/* Doughnut chart card */
.pf-donut-wrap {
    width: 140px;
    height: 140px;
    margin: 0 auto 14px;
}

.pf-alloc-donut-wrap {
    width: 100%;
    max-width: 440px;
    height: 380px;
    margin: 0 auto 16px;
}

.pf-donut-legend {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pf-legend-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
}

.pf-legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pf-legend-label {
    flex: 1;
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pf-legend-val {
    font-weight: 700;
    color: #1E293B;
    font-variant-numeric: tabular-nums;
    margin-left: auto;
}

.pf-analytics-empty { font-size: 13px; color: #CBD5E1; text-align: center; margin: 24px 0; }

/* Stat cards */
.pf-analytics-card--stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.pf-stat-big {
    font-size: 36px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    margin: 4px 0 2px;
}

.pf-text-primary { color: #2563EB; }

.pf-stat-desc {
    font-size: 12.5px;
    color: #64748B;
    margin: 0;
}

.pf-stat-note {
    font-size: 11.5px;
    color: #F59E0B;
    margin: 0;
}

/* Match chips */
.pf-match-row { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }

.pf-match-chip {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
}

.pf-match-chip--ok   { background: #DCFCE7; color: #15803D; }
.pf-match-chip--warn { background: #FEF3C7; color: #92400E; }

/* Section cards (Sector + Companies) */
.pf-section-card {
    background: #fff;
    border: 1.5px solid #E2E8F0;
    border-radius: 14px;
    padding: 20px 22px;
    margin-bottom: 16px;
}

.pf-section-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.pf-section-header--table { margin-bottom: 12px; }

/* Premium Equity Strategy section — visually distinct highlighted card */
.pf-strategy-card {
    position: relative;
    background: linear-gradient(135deg, #EFF6FF 0%, #FFFFFF 55%);
    border: 1.5px solid #BFDBFE;
    box-shadow: 0 8px 24px -12px rgba(37, 99, 235, 0.25);
    margin-top: 22px;
    padding: 26px 26px 24px;
}

.pf-strategy-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.pf-strategy-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.pf-strategy-heading .pf-section-title {
    font-size: 16px;
}

.pf-strategy-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 5px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

.pf-strategy-header .pf-section-sub {
    max-width: 760px;
}

.pf-strategy-alloc-row {
    display: grid;
    grid-template-columns: minmax(260px, 340px) 1fr;
    gap: 18px;
    margin-top: 18px;
}

.pf-strategy-donut-card,
.pf-strategy-table-card {
    background: #fff;
    border: 1px solid #DBEAFE;
    border-radius: 12px;
    padding: 16px 18px;
    min-width: 0;
}

.pf-strategy-disclaimer {
    margin: 16px 0 0;
    font-size: 11.5px;
    color: #94A3B8;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .pf-strategy-alloc-row { grid-template-columns: 1fr; }
}

.pf-nb-card {
    --nb-large: #2563EB;
    --nb-small: #7C3AED;
    --nb-thematic: #0D9488;
    --nb-global: #D97706;
}

.pf-nb-card .pf-section-title {
    font-size: 17px;
}

.pf-nb-card .pf-section-sub {
    color: #475569;
    font-size: 12.5px;
    line-height: 1.6;
    max-width: 880px;
    display: block;
    margin-bottom: 14px;
}

.pf-nb-counts-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 20px;
    font-size: 12.5px;
    color: #334155;
}

.pf-nb-counts-item strong {
    font-weight: 800;
    color: #0F172A;
}

.pf-nb-counts-item--mapped strong { color: #15803D; }
.pf-nb-counts-item--unmapped strong { color: #B45309; }
.pf-nb-counts-item--unmatched strong { color: #B91C1C; }

.pf-nb-counts-sep {
    color: #94A3B8;
    font-weight: 700;
}

/* Suggested Additions to Achieve Benchmark */
.pf-nb-subgroup-title.pf-nb-suggestion-category {
    margin-bottom: 0;
}

.pf-nb-gap-pill {
    display: inline-block;
    background: #DCFCE7;
    color: #15803D;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.pf-nb-empty-suggestion {
    font-size: 12.5px;
    color: #64748B;
    padding: 8px 0;
}

/* Status note on each summary card — over/under/met at a glance */
.pf-nb-status-note {
    font-size: 11px;
    font-weight: 700;
    padding: 5px 9px;
    border-radius: 8px;
    margin-bottom: 12px;
    display: inline-block;
}

.pf-nb-status-note--over { background: #FEF3C7; color: #B45309; }
.pf-nb-status-note--under { background: #FEE2E2; color: #B91C1C; }
.pf-nb-status-note--met { background: #DCFCE7; color: #15803D; }

/* Rebalanced badge — a third status alongside Held/Suggested */
.pf-nb-rebalanced-badge {
    display: inline-block;
    background: #FEF3C7;
    color: #B45309;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.pf-nb-combined-summary-item--rebalanced strong { color: #B45309; }

/* Rebalancing & Suggested Additions — the unified section covering both
   trims (over-allocated) and suggestions (under-allocated) */
.pf-nb-rebalance {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 18px 20px;
    margin-top: 30px;
    margin-bottom: 26px;
}

.pf-nb-rebalance-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 6px;
}

.pf-nb-rebalance-note {
    font-size: 12px;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 14px;
    max-width: 900px;
}

.pf-nb-pool-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 12.5px;
    color: #334155;
}

.pf-nb-pool-item strong {
    font-weight: 800;
    color: #0F172A;
}

.pf-nb-pool-item--allocated strong { color: #15803D; }
.pf-nb-pool-item--surplus strong { color: #B45309; }

.pf-nb-rebalance-block {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 14px;
}

.pf-nb-rebalance-block:first-of-type {
    margin-top: 0;
}

.pf-nb-rebalance-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.pf-nb-rebalance-block-note {
    font-size: 12px;
    color: #475569;
    line-height: 1.5;
    margin: 0 0 10px;
}

/* Final Allocation — Current + Suggested (Combined) */
.pf-nb-final {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 22px 24px;
    margin-top: 30px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .05);
}

.pf-nb-final-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.pf-nb-final-title {
    font-size: 15.5px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 6px;
}

.pf-nb-final-sub {
    font-size: 12px;
    color: #475569;
    line-height: 1.6;
    max-width: 640px;
    margin: 0;
}

.pf-nb-coverage-ring {
    flex: none;
    text-align: center;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 12px;
    padding: 12px 20px;
    min-width: 150px;
}

.pf-nb-coverage-value {
    font-size: 26px;
    font-weight: 800;
    color: #15803D;
    line-height: 1.1;
}

.pf-nb-coverage-label {
    font-size: 10.5px;
    font-weight: 600;
    color: #166534;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-top: 4px;
    line-height: 1.4;
}

.pf-nb-stacked-bar {
    display: flex;
    height: 16px;
    border-radius: 99px;
    overflow: hidden;
    background: #F1F5F9;
    margin-bottom: 10px;
}

.pf-nb-stacked-seg {
    height: 100%;
    transition: width .2s ease;
}

.pf-nb-stacked-seg--large-cap { background: var(--nb-large); }
.pf-nb-stacked-seg--small-cap { background: var(--nb-small); }
.pf-nb-stacked-seg--thematic  { background: var(--nb-thematic); }
.pf-nb-stacked-seg--global    { background: var(--nb-global); }

.pf-nb-stacked-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
}

.pf-nb-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #475569;
    font-weight: 600;
}

.pf-nb-legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
    flex: none;
}

.pf-nb-legend-dot--large-cap { background: var(--nb-large); }
.pf-nb-legend-dot--small-cap { background: var(--nb-small); }
.pf-nb-legend-dot--thematic  { background: var(--nb-thematic); }
.pf-nb-legend-dot--global    { background: var(--nb-global); }

.pf-nb-final-rows {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pf-nb-final-row {
    border-top: 1px solid #F1F5F9;
    padding-top: 14px;
}

.pf-nb-final-row-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 8px;
}

.pf-nb-closed-badge {
    background: #DCFCE7;
    color: #15803D;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
}

.pf-nb-open-badge {
    background: #FEF3C7;
    color: #B45309;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
}

.pf-nb-final-row-breakdown {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    font-size: 13px;
    color: #1E293B;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.pf-nb-final-figure-label {
    display: block;
    font-size: 9.5px;
    font-weight: 600;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.pf-nb-final-figure--result {
    color: #0F172A;
    font-size: 15px;
}

.pf-nb-final-plus,
.pf-nb-final-eq {
    color: #94A3B8;
    font-weight: 700;
}

.pf-nb-final-target {
    font-size: 11px;
    font-weight: 600;
    color: #64748B;
    margin-left: 4px;
}

.pf-nb-final-track {
    height: 8px;
    border-radius: 99px;
    background: #F1F5F9;
    overflow: hidden;
}

.pf-nb-final-fill {
    height: 100%;
    border-radius: 99px;
}

.pf-nb-final-fill--large-cap { background: var(--nb-large); }
.pf-nb-final-fill--small-cap { background: var(--nb-small); }
.pf-nb-final-fill--thematic  { background: var(--nb-thematic); }
.pf-nb-final-fill--global    { background: var(--nb-global); }

/* Combined Fund-wise Allocation — donut + custom legend + table */
.pf-nb-forecast-card {
    margin-top: 30px;
}

.pf-nb-combined-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12.5px;
    color: #475569;
    margin: 4px 0 16px;
}

.pf-nb-combined-summary-item strong {
    font-weight: 800;
    color: #0F172A;
}

.pf-nb-combined-summary-item--held strong { color: #15803D; }
.pf-nb-combined-summary-item--suggested strong { color: #1D4ED8; }

.pf-nb-custom-legend {
    max-height: 220px;
    overflow-y: auto;
    margin-top: 16px;
    padding-right: 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pf-nb-custom-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.pf-nb-legend-swatch {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex: none;
}

.pf-nb-custom-legend-name {
    flex: 1;
    min-width: 0;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pf-nb-custom-legend-pct {
    flex: none;
    font-weight: 700;
    color: #0F172A;
    font-variant-numeric: tabular-nums;
}

.pf-nb-held-badge {
    display: inline-block;
    background: #DCFCE7;
    color: #15803D;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.pf-nb-suggested-badge {
    display: inline-block;
    background: #DBEAFE;
    color: #1D4ED8;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.pf-nb-combined-table th {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
    white-space: nowrap;
}

.pf-nb-combined-table th.pf-th-pct,
.pf-nb-combined-table td.pf-td-pct {
    padding-left: 16px;
}

.pf-nb-combined-table tbody tr:nth-child(even) td {
    background: #FAFBFC;
}

.pf-nb-combined-table .pf-co-name {
    white-space: normal;
}

.pf-nb-amount-cell {
    white-space: nowrap;
}

.pf-nb-rupee {
    color: #94A3B8;
    font-weight: 500;
    margin-right: 3px;
}

.pf-nb-card-item {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 16px 18px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .05);
}

.pf-nb-card-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--nb-accent, #2563EB);
}

.pf-nb-card-item--large-cap { --nb-accent: var(--nb-large); }
.pf-nb-card-item--small-cap { --nb-accent: var(--nb-small); }
.pf-nb-card-item--thematic  { --nb-accent: var(--nb-thematic); }
.pf-nb-card-item--global    { --nb-accent: var(--nb-global); }

.pf-nb-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 12px;
}

.pf-nb-card-name {
    font-size: 14px;
    font-weight: 700;
    color: #0F172A;
}

.pf-nb-card-target {
    font-size: 11px;
    font-weight: 700;
    color: var(--nb-accent, #2563EB);
    text-transform: uppercase;
    letter-spacing: .03em;
}

.pf-nb-compare-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 6px;
}

.pf-nb-compare-value {
    font-size: 20px;
    font-weight: 800;
    color: #0F172A;
    font-variant-numeric: tabular-nums;
}

.pf-nb-compare-label {
    font-size: 11px;
    color: #64748B;
    font-weight: 600;
}

.pf-nb-compare-track {
    position: relative;
    height: 9px;
    border-radius: 99px;
    background: #EEF2F6;
    margin-bottom: 12px;
}

.pf-nb-compare-fill {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    border-radius: 99px;
    background: var(--nb-accent, #2563EB);
}

.pf-nb-compare-target-marker {
    position: absolute;
    top: -3px;
    bottom: -3px;
    width: 3px;
    border-radius: 2px;
    background: #0F172A;
}

.pf-nb-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px dashed #E2E8F0;
}

.pf-nb-card-footer-stat {
    font-size: 11.5px;
    color: #475569;
    font-weight: 600;
}

.pf-nb-card-footer-stat strong {
    color: #0F172A;
    font-weight: 800;
}

.pf-nb-excluded-note {
    font-size: 11px;
    font-weight: 700;
    color: #DC2626;
    margin-top: 8px;
}

.pf-nb-table-card {
    margin-top: 16px;
}

.pf-nb-subgroup {
    margin-top: 26px;
}

.pf-nb-subgroup-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 10px;
    padding-left: 10px;
    border-left: 4px solid var(--nb-accent, #2563EB);
}

.pf-nb-subgroup--large-cap { --nb-accent: var(--nb-large); }
.pf-nb-subgroup--small-cap { --nb-accent: var(--nb-small); }
.pf-nb-subgroup--thematic  { --nb-accent: var(--nb-thematic); }
.pf-nb-subgroup--global    { --nb-accent: var(--nb-global); }

.pf-nb-card table.pf-data-table td {
    color: #1E293B;
}

/* Broad, tab-wide override (not just inside tables) — the summary cards'
   "Not Rated" footer text uses this same class outside any table, and was
   left at the site-wide pf-text-muted color (#CBD5E1, near-invisible on
   white) since the earlier fix only scoped to table cells. */
.pf-nb-card .pf-text-muted {
    color: #64748B;
    font-weight: 600;
}

.pf-nb-card table.pf-data-table th {
    color: #64748B;
}

.pf-nb-card .pf-category-pill {
    color: #334155;
    background: #E2E8F0;
}

.pf-fund-stars {
    color: #C08A00;
    letter-spacing: 2px;
    white-space: nowrap;
    font-size: 16px;
    font-weight: 700;
    text-shadow: 0 0 1px rgba(192, 138, 0, .35);
}

.pf-fund-rating-num {
    margin-left: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    font-variant-numeric: tabular-nums;
}

.pf-nb-excluded-badge {
    display: inline-block;
    background: #FEE2E2;
    color: #B91C1C;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
}

.pf-nb-counted-badge {
    display: inline-block;
    background: #DCFCE7;
    color: #15803D;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
}

/* A subtle background tint instead of opacity — opacity fades EVERY child
   (name, value, badge) proportionally, so a section where most/all rows are
   excluded (common for Unmapped, which is always 100% excluded) read as
   uniformly washed-out rather than "some rows flagged." A tint keeps text at
   full, readable contrast and still visually separates the row. */
tr.pf-nb-row-excluded td {
    background: #FEF5F5;
}

tr.pf-nb-row-excluded:hover td {
    background: #FEE9E9;
}

.pf-explore-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.pf-explore-stat {
    background: #fff;
    border: 1px solid #DBEAFE;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pf-explore-stat-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #64748B;
}

.pf-explore-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #1D4ED8;
    font-variant-numeric: tabular-nums;
}

.pf-explore-stat--principal {
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    border-color: #1D4ED8;
}

.pf-explore-stat--principal .pf-explore-stat-label {
    color: #DBEAFE;
}

.pf-explore-stat--principal .pf-explore-stat-value {
    color: #fff;
}

.pf-nb-return-stat {
    background: linear-gradient(135deg, #0D9488, #0F766E);
    border-color: #0F766E;
}

.pf-nb-return-stat .pf-explore-stat-label {
    color: #CCFBF1;
}

.pf-nb-return-stat-value {
    color: #fff;
}

.pf-nb-return-stat-value small {
    font-size: 11px;
    font-weight: 600;
    opacity: .85;
}

.pf-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #1E293B;
}

.pf-section-sub {
    font-size: 11.5px;
    color: #94A3B8;
}

/* Sector allocation bars */
.pf-sector-list { display: flex; flex-direction: column; gap: 10px; }

.pf-sector-chart-wrap { position: relative; width: 100%; }

/* Forces each Chart.js canvas onto its own GPU layer — without this,
   Chromium can leave a stale "ghost" frame of a scrolled-past chart bleeding
   through above a position:sticky element during scroll (a known Chromium
   canvas-compositing bug, not something layer-promoting the sticky element
   alone fixes). */
.pf-donut-wrap canvas,
.pf-sector-chart-wrap canvas,
.pf-alloc-donut-wrap canvas {
    transform: translateZ(0);
    backface-visibility: hidden;
}

.pf-sector-row {
    display: grid;
    grid-template-columns: 180px 1fr 52px;
    align-items: center;
    gap: 10px;
}

.pf-sector-name {
    font-size: 12.5px;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pf-sector-bar-wrap {
    height: 7px;
    background: #F1F5F9;
    border-radius: 99px;
    overflow: hidden;
}

.pf-sector-bar {
    height: 100%;
    background: #2563EB;
    border-radius: 99px;
    transition: width .4s ease;
}

.pf-sector-pct {
    font-size: 12px;
    font-weight: 700;
    color: #1E293B;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Top 10 companies */
.pf-company-list { display: flex; flex-direction: column; gap: 10px; }

.pf-company-row {
    display: grid;
    grid-template-columns: 24px 1fr 1fr 52px;
    align-items: center;
    gap: 10px;
}

.pf-company-rank {
    font-size: 11px;
    font-weight: 700;
    color: #94A3B8;
    text-align: center;
}

.pf-company-info { display: flex; flex-direction: column; gap: 1px; }

.pf-company-name {
    font-size: 12.5px;
    font-weight: 600;
    color: #1E293B;
}

.pf-company-overlap {
    font-size: 10.5px;
    color: #2563EB;
    font-weight: 600;
}

.pf-company-bar-wrap {
    height: 6px;
    background: #F1F5F9;
    border-radius: 99px;
    overflow: hidden;
}

.pf-company-bar {
    height: 100%;
    background: #10B981;
    border-radius: 99px;
    transition: width .4s ease;
}

.pf-company-pct {
    font-size: 12px;
    font-weight: 700;
    color: #1E293B;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* MF match dot in scheme table */
.pf-scheme-name-row { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 2px; }

.pf-mf-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
}

.pf-mf-dot--ok   { background: #22C55E; }
.pf-mf-dot--warn { background: #F59E0B; }

/* MF unavailable label */
.pf-mf-unavail {
    font-size: 11px;
    font-weight: 600;
    color: #B45309;
    background: #FEF3C7;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
}

/* Doughnut legend color palette (class-based, no inline styles) */
.pf-color-0 { background: #2563EB; }
.pf-color-1 { background: #10B981; }
.pf-color-2 { background: #F59E0B; }
.pf-color-3 { background: #EF4444; }
.pf-color-4 { background: #8B5CF6; }
.pf-color-5 { background: #06B6D4; }
.pf-color-6 { background: #F97316; }

/* Notice bar */
.pf-notice-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #FFFBEB;
    border: 1px solid #FCD34D;
    border-radius: 10px;
    padding: 11px 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #78350F;
}
.pf-notice-bar svg { flex-shrink: 0; color: #D97706; }

/* Data tables (Top Companies, Overlap) */
.pf-tbl-wrap { overflow-x: auto; }

.pf-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.pf-data-table th {
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #94A3B8;
    padding: 10px 12px;
    border-bottom: 2px solid #F1F5F9;
    white-space: nowrap;
}

.pf-data-table td {
    padding: 11px 12px;
    border-bottom: 1px solid #F8FAFC;
    vertical-align: middle;
    color: #334155;
}

.pf-data-table tbody tr:last-child td { border-bottom: none; }
.pf-data-table tbody tr:hover td { background: #F8FAFC; }

.pf-th-rank  { width: 40px; text-align: center; }
.pf-th-bar   { width: 140px; }
.pf-th-pct   { width: 80px; text-align: right; }
.pf-th-count { width: 100px; text-align: center; }

.pf-td-rank   { text-align: center; font-size: 12px; font-weight: 700; color: #94A3B8; }
.pf-td-center { text-align: center; }
.pf-td-pct    { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; color: #1E293B; }
.pf-td-bar    { vertical-align: middle; }

.pf-co-name {
    font-weight: 600;
    color: #1E293B;
    font-size: 13px;
}

.pf-co-name-cell { display: flex; flex-direction: column; gap: 3px; }

/* Scheme tags inside tables */
.pf-scheme-tags { display: flex; flex-wrap: wrap; gap: 4px; }

.pf-scheme-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    color: #475569;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pf-scheme-tag--more {
    color: #2563EB;
    background: #EFF6FF;
    border-color: #DBEAFE;
    font-weight: 600;
}

/* View more / View less toggle under expandable charts */
.pf-chart-toggle-row {
    display: flex;
    justify-content: center;
    margin: 4px 0 14px;
}

.pf-chart-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #2563EB;
    background: #EFF6FF;
    border: 1px solid #DBEAFE;
    border-radius: 6px;
    padding: 6px 14px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.pf-chart-toggle-btn:hover {
    background: #DBEAFE;
    border-color: #BFDBFE;
}

.pf-chart-toggle-count {
    color: #64748B;
    font-weight: 500;
}

/* Inline allocation bar in table */
.pf-inline-bar-wrap {
    height: 7px;
    background: #F1F5F9;
    border-radius: 99px;
    overflow: hidden;
    min-width: 80px;
}

.pf-inline-bar {
    height: 100%;
    border-radius: 99px;
    transition: width .4s ease;
}

.pf-inline-bar--blue  { background: #2563EB; }
.pf-inline-bar--green { background: #10B981; }

/* Overlap badge */
.pf-overlap-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #EFF6FF;
    color: #2563EB;
    font-size: 12px;
    font-weight: 700;
    border: 1.5px solid #BFDBFE;
}

.pf-overlap-count-pill {
    font-size: 10.5px;
    font-weight: 600;
    color: #2563EB;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    padding: 1px 7px;
    border-radius: 20px;
    display: inline-block;
}

/* Responsive analytics */
@media (max-width: 1024px) {
    .pf-analytics-row { grid-template-columns: 1fr 1fr; }
    .pf-analytics-card--chart { grid-column: 1 / -1; }
    .pf-donut-wrap { width: 120px; height: 120px; }
}

@media (max-width: 768px) {
    .pf-summary-row   { grid-template-columns: 1fr 1fr; }
    .pf-analytics-row { grid-template-columns: 1fr; }
    .pf-sector-row    { grid-template-columns: 130px 1fr 44px; }
}

@media (max-width: 480px) {
    .pf-summary-row { grid-template-columns: 1fr; }
    .pf-sector-row  { grid-template-columns: 100px 1fr 40px; font-size: 11.5px; }
}

/* ── Risk Profile Missing Notice (Client Info page) ─────────────── */
.risk_profile_notice {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #FFFBEB;
    border: 1.5px solid #FCD34D;
    border-radius: 12px;
    padding: 16px 20px;
}

.risk_profile_notice_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: #FEF3C7;
    border: 1.5px solid #FCD34D;
    border-radius: 10px;
    color: #B45309;
    flex-shrink: 0;
}

.risk_profile_notice_body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.risk_profile_notice_title {
    font-size: 14px;
    font-weight: 700;
    color: #78350F;
}

.risk_profile_notice_text {
    font-size: 12.5px;
    line-height: 1.55;
    color: #92400E;
}

.risk_profile_notice_btn {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 10px 20px;
    background: #B45309;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    flex-shrink: 0;
    transition: background .15s;
}

.risk_profile_notice_btn:hover { background: #92400E; color: #fff; }

@keyframes client-btn-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,.45); }
    50%      { box-shadow: 0 0 0 6px rgba(37,99,235,0); }
}

.client_btn_pulse { animation: client-btn-pulse 1.8s ease-in-out infinite; }

@media (max-width: 640px) {
    .risk_profile_notice { flex-direction: column; align-items: flex-start; }
    .risk_profile_notice_btn { width: 100%; justify-content: center; }
}

/******************************* client_list (redesigned) *************************************/

.cl-page-title {
    margin-bottom: 4px;
}

.cl-count-pill {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray_text);
    background: var(--card_bg);
    border: 1px solid var(--border);
    padding: 4px 12px;
    border-radius: 20px;
    margin-left: 12px;
}

/* Toolbar */
.cl-toolbar-form { margin: 20px 0; }

.cl-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.cl-toolbar-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}

.cl-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #F7F7F7;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 9px 14px;
    width: 100%;
    max-width: 300px;
    color: var(--gray_text);
    transition: border-color .15s;
}

.cl-search-box:focus-within {
    border-color: var(--dark_primary);
    background: var(--white);
}

.cl-search-input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-family: 'Poppins-Medium';
    font-size: 13.5px;
    color: var(--black);
}

.cl-select-box {
    background: #F7F7F7;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 9px 14px;
}

.cl-select {
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Poppins-Medium';
    font-size: 13.5px;
    color: var(--black);
    cursor: pointer;
}

.cl-toolbar-actions { display: flex; gap: 8px; }

.cl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 20px;
    border-radius: 8px;
    font-family: 'Poppins-Medium';
    font-size: 13.5px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s;
}

.cl-btn-primary { background: var(--dark_primary); color: var(--white); }
.cl-btn-primary:hover { background: var(--primary); color: var(--white); }

.cl-btn-ghost {
    background: var(--white);
    color: var(--gray_text);
    border: 1px solid var(--border);
}
.cl-btn-ghost:hover { color: var(--dark_primary); border-color: var(--dark_primary); }

.cl-btn-create {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--dark_primary);
    color: var(--white);
    padding: 10px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Poppins-Medium';
    font-size: 13.5px;
    transition: background .15s, box-shadow .15s;
    flex-shrink: 0;
}

.cl-btn-create:hover {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(37,99,235,.3);
}

/* Table */
.cl-table-wrap { position: relative; overflow-x: auto; }

.cl-table {
    width: 100%;
    text-align: left;
    border: 1px solid var(--border);
    border-radius: 10px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

.cl-table thead tr th {
    background: #F7F7F7;
    padding: 13px 16px;
    font-family: 'Poppins-SemiBold';
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--gray_text);
    border-bottom: 1px solid var(--border);
}

.cl-table tbody tr td {
    padding: 13px 16px;
    color: #4B5563;
    font-size: 13.5px;
    border-bottom: 1px solid #F0F1F3;
    vertical-align: middle;
}

.cl-table tbody tr:last-child td { border-bottom: none; }
.cl-table tbody tr:hover td { background: #F9FAFC; }

.cl-th-action { text-align: right; width: 70px; }

.cl-client-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cl-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--light_primary);
    color: var(--dark_primary);
    font-family: 'Poppins-Bold';
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cl-client-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }

.cl-client-name {
    font-family: 'Poppins-SemiBold';
    font-size: 13.5px;
    color: var(--black);
}

.cl-client-id { font-size: 11px; color: var(--gray_text); }

.cl-contact-cell { display: flex; flex-direction: column; gap: 2px; }
.cl-contact-email { font-size: 13px; color: var(--black); }
.cl-contact-phone { font-size: 12px; color: var(--gray_text); }

.cl-aum-value {
    font-family: 'Poppins-SemiBold';
    font-size: 13px;
    color: var(--dark_primary);
    font-variant-numeric: tabular-nums;
}

.cl-text-muted { color: #CBD5E1; font-size: 13px; }

.cl-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    color: var(--gray_text);
    transition: border-color .15s, color .15s, background .15s;
}

.cl-view-btn:hover {
    border-color: var(--dark_primary);
    color: var(--dark_primary);
    background: var(--light_primary);
}

/* Empty state */
.cl-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    padding: 64px 20px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);
}

.cl-empty-title { font-family: 'Poppins-SemiBold'; font-size: 15px; color: #475569; margin-top: 10px; }
.cl-empty-sub { font-size: 13px; color: var(--gray_text); margin-bottom: 12px; max-width: 320px; }

/* Pagination */
.cl-pagination {
    display: flex;
    justify-content: center;
    padding: 18px 0 4px;
}

@media (max-width: 720px) {
    .cl-toolbar { flex-direction: column; align-items: stretch; }
    .cl-toolbar-left { flex-direction: column; align-items: stretch; }
    .cl-search-box, .cl-select-box { max-width: 100%; }
    .cl-btn-create { justify-content: center; }
    .cl-table { white-space: nowrap; }
}

/* Client list — Next Review badge */
.cl-review-badge {
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    border: 1px solid transparent;
}

.cl-review-badge--overdue {
    color: #B91C1C;
    background: #FEE2E2;
    border-color: #FCA5A5;
}

.cl-review-badge--upcoming {
    color: #B45309;
    background: #FEF3C7;
    border-color: #FCD34D;
}

.cl-review-badge--scheduled {
    color: #15803D;
    background: #DCFCE7;
    border-color: #86EFAC;
}

/* Client info — Portfolio Review Frequency card */
.ci-review-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 22px;
}

.ci-review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.ci-review-header-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--card_bg);
    color: var(--dark_primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ci-review-title {
    font-family: 'Poppins-SemiBold';
    font-size: 14.5px;
    color: var(--black);
}

.ci-review-badge {
    margin-left: auto;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    border: 1px solid transparent;
}

.ci-review-badge--overdue {
    color: #B91C1C;
    background: #FEE2E2;
    border-color: #FCA5A5;
}

.ci-review-badge--upcoming {
    color: #B45309;
    background: #FEF3C7;
    border-color: #FCD34D;
}

.ci-review-badge--scheduled {
    color: #15803D;
    background: #DCFCE7;
    border-color: #86EFAC;
}

.ci-review-stats {
    margin-bottom: 20px;
}

.ci-text-muted {
    color: var(--gray_text);
    font-weight: 500;
}

.ci-review-divider {
    height: 1px;
    background: var(--border);
    margin-bottom: 20px;
}

.ci-review-actions {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.ci-review-select-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 180px;
    max-width: 260px;
}

.ci-freq-dropdown {
    position: relative;
}

.ci-freq-dropdown-btn {
    width: 100%;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0 12px;
    font-family: 'Poppins-Medium';
    font-size: 13.5px;
    color: var(--black);
    background: var(--white);
    cursor: pointer;
    transition: border-color .15s;
}

.ci-freq-dropdown-btn svg {
    color: var(--gray_text);
    flex-shrink: 0;
    transition: transform .15s;
}

.ci-freq-dropdown-btn:hover {
    border-color: var(--dark_primary);
}

.ci-freq-dropdown--open .ci-freq-dropdown-btn {
    border-color: var(--dark_primary);
}

.ci-freq-dropdown--open .ci-freq-dropdown-btn svg {
    transform: rotate(180deg);
}

.ci-freq-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 10px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    overflow: hidden;
    z-index: 30;
    opacity: 0;
    visibility: hidden;
    transform: scaleY(0.92);
    transform-origin: 50% 0;
    transition: opacity .15s, transform .15s, visibility .15s;
}

.ci-freq-dropdown--open .ci-freq-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: scaleY(1);
}

.ci-freq-dropdown-item {
    display: block;
    padding: 10px 14px;
    font-size: 13.5px;
    color: var(--black);
    text-decoration: none;
    border-bottom: 1px solid #EEF0F2;
    transition: background .15s;
}

.ci-freq-dropdown-item:last-child { border-bottom: 0; }

.ci-freq-dropdown-item:hover {
    background: var(--light_primary);
}

.ci-freq-dropdown-item.is-active {
    color: var(--dark_primary);
    font-family: 'Poppins-SemiBold';
    background: var(--light_primary);
}

.ci-review-mark-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 42px;
    padding: 0 18px;
    border-radius: 8px;
    border: none;
    background: var(--dark_primary);
    color: var(--white);
    font-family: 'Poppins-Medium';
    font-size: 13.5px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
}

.ci-review-mark-btn:hover:not(:disabled) { background: var(--primary); }

.ci-review-mark-btn:disabled {
    background: var(--card_bg);
    color: var(--gray_text);
    cursor: not-allowed;
}

@media (max-width: 640px) {
    .ci-review-actions { flex-direction: column; align-items: stretch; }
    .ci-review-select-group { max-width: 100%; }
    .ci-review-mark-btn { width: 100%; }
    .ci-review-badge { margin-left: 0; }
    .ci-review-header { flex-wrap: wrap; }
}

/* Header — Notification Bell */
.notification_bell {
    position: relative;
    display: flex;
    align-items: center;
}

.notification_bell_btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--gray_text);
    cursor: pointer;
    transition: background .15s, color .15s;
}

.notification_bell_btn:hover {
    background: var(--light_primary);
    color: var(--dark_primary);
}

.notification_bell_badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 20px;
    background: #DC2626;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}

.notification_bell_dropdown {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: 400px;
    max-height: 480px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, .16);
    display: none;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(.98);
    transform-origin: 100% 0;
    transition: opacity .18s, transform .18s, visibility .18s;
    z-index: 200;
}

.notification_bell--open .notification_bell_dropdown {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.notification_bell_dropdown_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}

.notification_bell_dropdown_head_text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.notification_bell_dropdown_title {
    font-family: 'Poppins-SemiBold';
    font-size: 15px;
    color: var(--black);
}

.notification_bell_dropdown_sub {
    font-size: 12px;
    color: var(--gray_text);
}

.notification_bell_dropdown_head a {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--dark_primary);
    text-decoration: none;
    flex-shrink: 0;
}

.notification_bell_dropdown_head a:hover { text-decoration: underline; }

.notification_bell_dropdown_list {
    overflow-y: auto;
    max-height: 400px;
}

.notification_bell_empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 48px 28px;
    text-align: center;
    color: var(--border);
}

.notification_bell_empty_title {
    font-family: 'Poppins-Medium';
    font-size: 13.5px;
    color: var(--black);
}

.notification_bell_empty_sub {
    font-size: 12px;
    color: var(--gray_text);
    max-width: 260px;
    line-height: 1.5;
}

.notification_bell_item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid #EEF0F2;
    text-decoration: none;
    transition: background .15s;
}

.notification_bell_item:last-child { border-bottom: 0; }

.notification_bell_item:hover {
    background: var(--card_bg);
}

.notification_bell_item--unread {
    background: var(--light_primary);
}

.notification_bell_item_avatar {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins-SemiBold';
    font-size: 14px;
    flex-shrink: 0;
}

.notification_bell_item_avatar--overdue { background: #FEE2E2; color: #B91C1C; }
.notification_bell_item_avatar--upcoming { background: #FEF3C7; color: #B45309; }

.notification_bell_item_body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.notification_bell_item_name {
    font-family: 'Poppins-Medium';
    font-size: 13.5px;
    color: var(--black);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification_bell_item_meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification_bell_item_status {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 20px;
    flex-shrink: 0;
}

.notification_bell_item_status--overdue { color: #B91C1C; background: #FEE2E2; }
.notification_bell_item_status--upcoming { color: #B45309; background: #FEF3C7; }

.notification_bell_item_date {
    font-size: 11.5px;
    color: var(--gray_text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification_bell_item_arrow {
    color: var(--border);
    flex-shrink: 0;
    transition: color .15s, transform .15s;
}

.notification_bell_item:hover .notification_bell_item_arrow {
    color: var(--dark_primary);
    transform: translateX(2px);
}

@media (max-width: 480px) {
    .notification_bell_dropdown { width: calc(100vw - 32px); right: 0; }
}

/* Dashboard — auto-popup Portfolio Review modal */
.review-popup-modal {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .2);
}

.review-popup-modal-head {
    background: #1E3A5F;
    padding: 20px 24px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.review-popup-modal-head-text {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
}

.review-popup-modal-head-text svg {
    width: 38px;
    height: 38px;
    padding: 9px;
    background: rgba(255, 255, 255, .12);
    border-radius: 10px;
    flex-shrink: 0;
}

.review-popup-modal-head-text h5 {
    margin: 0;
    font-family: 'Poppins-SemiBold';
    font-size: 16px;
    color: #fff;
}

.review-popup-modal-head-text span {
    font-size: 12px;
    color: rgba(255, 255, 255, .65);
}

.review-popup-modal-head .btn-close {
    filter: invert(1) grayscale(1) brightness(2);
    opacity: .8;
}

.review-popup-modal-head .btn-close:hover { opacity: 1; }

.review-popup-modal-body {
    padding: 0;
    max-height: 60vh;
    overflow-y: auto;
    background: var(--white);
}

.review-popup-modal-body .notification_bell_item {
    padding: 16px 24px;
}

.review-popup-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}

.review-popup-view-all {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark_primary);
    text-decoration: none;
}

.review-popup-view-all:hover { text-decoration: underline; }

.review-popup-close-btn {
    padding: 9px 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    color: var(--gray_text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: color .15s, border-color .15s;
}

.review-popup-close-btn:hover {
    color: var(--dark_primary);
    border-color: var(--dark_primary);
}

@media (max-width: 640px) {
    .review-popup-modal-footer { flex-direction: column-reverse; gap: 10px; align-items: stretch; }
    .review-popup-close-btn { width: 100%; }
    .review-popup-view-all { text-align: center; }
}

/******************************* end_client_list (redesigned) *************************************/

/* ── Portfolio Report (preview page) ── */
.rpt-layout {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rpt-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 2px;
}

.rpt-back-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gray_text);
  text-decoration: none;
}
.rpt-back-btn:hover { color: var(--dark_primary); }

.rpt-asof {
  flex: 1;
  font-size: 12.5px;
  color: var(--gray_text);
}

.rpt-download-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s;
}
.rpt-download-btn:hover { background: var(--dark_primary); color: #fff; }

.rpt-section-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 8px 24px -16px rgba(15, 23, 42, .15);
}

.rpt-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins-SemiBold';
  font-size: 14.5px;
  color: var(--black);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F0F2F5;
}

.rpt-section-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  flex-shrink: 0;
}

.rpt-section-title--client .rpt-section-icon { background: #E1E9FC; color: var(--dark_primary); }
.rpt-section-title--snapshot .rpt-section-icon { background: #DCFCE7; color: #15803d; }
.rpt-section-title--goal .rpt-section-icon { background: #FEF3C7; color: #b45309; }
.rpt-section-title--portfolio .rpt-section-icon { background: #EDE9FE; color: #6d28d9; }

.rpt-risk-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--light_primary);
  color: var(--dark_primary);
}

.rpt-subtitle {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gray_text);
  text-transform: uppercase;
  letter-spacing: .03em;
  margin: 18px 0 10px;
}

.rpt-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 900px) {
  .rpt-two-col { grid-template-columns: 1fr; }
}

.rpt-table-wrap { overflow-x: auto; }

.rpt-data-table {
  width: 100%;
  border-collapse: collapse;
}

.rpt-data-table td,
.rpt-data-table th {
  border: 1px solid var(--border);
  padding: 8px 12px;
  font-size: 12.5px;
  text-align: left;
  color: var(--black);
}

.rpt-data-table th {
  background: #FAFBFC;
  font-weight: 700;
  white-space: nowrap;
}

.rpt-data-table td.rpt-label,
.rpt-data-table td:first-child.rpt-label {
  font-weight: 600;
  background: #FAFBFC;
  width: 40%;
}

.rpt-th-num, .rpt-td-num { text-align: right; }

.rpt-text-green { color: #15803d; font-weight: 600; }
.rpt-text-red { color: #b91c1c; font-weight: 600; }

.rpt-data-table--compact td,
.rpt-data-table--compact th {
  padding: 7px 9px;
  font-size: 11.5px;
}

/* Investment Snapshot — colorful stat tiles */
.rpt-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}

.rpt-stat-tile {
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid transparent;
}

.rpt-stat-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  opacity: .75;
}

.rpt-stat-value {
  font-size: 17px;
  font-weight: 700;
  font-family: 'Poppins-SemiBold';
}

.rpt-stat-tile--invest  { background: #EFF6FF; border-color: #DBEAFE; color: #1D4ED8; }
.rpt-stat-tile--redeem  { background: #FDF4FF; border-color: #F3E8FF; color: #86198F; }
.rpt-stat-tile--net     { background: #F0FDFA; border-color: #CCFBF1; color: #0F766E; }
.rpt-stat-tile--current { background: #F5F3FF; border-color: #EDE9FE; color: #6D28D9; }
.rpt-stat-tile--gain    { background: #F0FDF4; border-color: #DCFCE7; color: #15803D; }
.rpt-stat-tile--loss    { background: #FEF2F2; border-color: #FEE2E2; color: #B91C1C; }
.rpt-stat-tile--xirr    { background: #FFFBEB; border-color: #FEF3C7; color: #B45309; }

/* Asset allocation — donut + legend table side by side */
.rpt-allocation-row {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.rpt-donut-wrap {
  position: relative;
  width: 190px;
  height: 190px;
  flex-shrink: 0;
}

.rpt-alloc-table { flex: 1; min-width: 240px; }

.rpt-legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

@media (max-width: 700px) {
  .rpt-allocation-row { flex-direction: column; align-items: stretch; }
  .rpt-donut-wrap { margin: 0 auto; }
}

.rpt-empty-note {
  font-size: 12.5px;
  color: var(--gray_text);
  text-align: center;
  padding: 16px;
}

/******************************* fund_ratings *************************************/
.fr-page {
  --fr-total: #2563EB;
  --fr-rated: #0f9d58;
  --fr-five: #d99a1b;
  --fr-four: #7c5cf0;
  --fr-notrated: #8a8a8a;
}

.fr-page-title {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.fr-count-pill {
  background: var(--light_primary);
  color: var(--dark_primary);
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 99px;
}

.fr-sub {
  color: var(--gray_text);
  font-size: 13px;
  line-height: 1.55;
  max-width: 900px;
  margin: 0 0 22px;
}

.fr-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.fr-tile {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fr-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.08);
}

.fr-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--fr-accent, var(--primary));
}

.fr-tile-total { --fr-accent: var(--fr-total); }
.fr-tile-rated { --fr-accent: var(--fr-rated); }
.fr-tile-five { --fr-accent: var(--fr-five); }
.fr-tile-four { --fr-accent: var(--fr-four); }
.fr-tile-notrated { --fr-accent: var(--fr-notrated); }

.fr-tile-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fr-accent, var(--primary));
  background: color-mix(in srgb, var(--fr-accent, var(--primary)) 12%, transparent);
  margin-bottom: 2px;
}

.fr-tile-value {
  font-family: 'Poppins-Bold';
  font-size: 25px;
  color: var(--black);
  line-height: 1.1;
}

.fr-tile-label {
  font-size: 11.5px;
  color: var(--gray_text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fr-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 22px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.fr-card-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--black);
  margin: 0 0 14px;
}

.fr-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 7px 0;
}

.fr-bar-label {
  width: 150px;
  flex: none;
  font-size: 12.5px;
  color: var(--gray_text);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fr-bar-track {
  flex: 1;
  display: flex;
  height: 18px;
  gap: 2px;
}

.fr-seg {
  border-radius: 4px;
  min-width: 3px;
  cursor: default;
}

.fr-seg:hover {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.fr-bar-count {
  width: 36px;
  flex: none;
  font-size: 11.5px;
  color: var(--gray_text);
  text-align: left;
}

.fr-legend {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--gray_text);
}

.fr-legend-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 5px;
  vertical-align: -1px;
}

.fr-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.fr-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px 14px;
  color: var(--gray_text);
  min-width: 260px;
  flex: 1 1 260px;
  max-width: 340px;
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fr-search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--light_primary);
}

.fr-search-input {
  border: none;
  outline: none;
  font-size: 13px;
  width: 100%;
  color: var(--black);
  background: transparent;
}

.fr-select-wrap {
  position: relative;
}

.fr-select-wrap::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.6px solid var(--gray_text);
  border-bottom: 1.6px solid var(--gray_text);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.fr-select {
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px 30px 9px 14px;
  font-size: 13px;
  color: var(--black);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fr-select:hover {
  border-color: var(--primary);
}

.fr-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--light_primary);
}

.fr-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray_text);
  cursor: pointer;
  user-select: none;
}

.fr-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.fr-toggle-track {
  width: 34px;
  height: 19px;
  border-radius: 99px;
  background: var(--border);
  position: relative;
  flex: none;
  transition: background 0.15s ease;
}

.fr-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--white);
  transition: transform 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.fr-toggle input:checked + .fr-toggle-track {
  background: var(--primary);
}

.fr-toggle input:checked + .fr-toggle-track .fr-toggle-thumb {
  transform: translateX(15px);
}

.fr-toggle input:focus-visible + .fr-toggle-track {
  box-shadow: 0 0 0 3px var(--light_primary);
}

.fr-clear-btn {
  border: none;
  background: none;
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 4px;
  margin-left: auto;
}

.fr-clear-btn:hover {
  text-decoration: underline;
}

.fr-count {
  font-size: 12.5px;
  color: var(--gray_text);
  margin: 0 2px 10px;
}

.fr-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--card_bg);
  border-radius: 10px;
}

.fr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.fr-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--card_bg);
}

.fr-table th {
  font-size: 11px;
  color: var(--gray_text);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1.5px solid var(--border);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.fr-table th:hover {
  color: var(--primary);
}

.fr-sort-arrow {
  display: inline-block;
  width: 8px;
  margin-left: 4px;
  opacity: 0;
}

.fr-table th.fr-sorted-asc .fr-sort-arrow,
.fr-table th.fr-sorted-desc .fr-sort-arrow {
  opacity: 1;
  color: var(--primary);
}

.fr-table th.fr-sorted-asc .fr-sort-arrow::after { content: '\2191'; }
.fr-table th.fr-sorted-desc .fr-sort-arrow::after { content: '\2193'; }
.fr-table th.fr-sorted-asc,
.fr-table th.fr-sorted-desc {
  color: var(--primary);
}

.fr-table th.fr-num,
.fr-table td.fr-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.fr-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--card_bg);
  vertical-align: middle;
}

.fr-table tbody tr:last-child td {
  border-bottom: none;
}

.fr-table tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--card_bg) 45%, transparent);
}

.fr-table tr:hover td {
  background: var(--light_primary);
}

.fr-fund-name {
  font-weight: 600;
  color: var(--black);
}

.fr-fund-amc {
  font-size: 11.5px;
  color: var(--gray_text);
  margin-top: 2px;
}

.fr-category-badge {
  display: inline-block;
  background: var(--card_bg);
  color: var(--black);
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 99px;
  white-space: nowrap;
}

.fr-stars {
  color: var(--fr-five, #d99a1b);
  letter-spacing: 1px;
  white-space: nowrap;
  font-size: 14px;
}

.fr-rating-num {
  margin-left: 4px;
  font-size: 11.5px;
  color: var(--gray_text);
  font-variant-numeric: tabular-nums;
}

.fr-not-rated {
  display: inline-block;
  font-size: 11px;
  color: var(--gray_text);
  background: var(--card_bg);
  padding: 3px 9px;
  border-radius: 99px;
}

.fr-pos { color: #0f9d58; font-weight: 600; }
.fr-neg { color: #d03b3b; font-weight: 600; }

.fr-empty-row {
  text-align: center;
  color: var(--gray_text);
  font-size: 13px;
  padding: 32px 10px;
}

.fr-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
}

.fr-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--black);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.fr-page-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--light_primary);
}

.fr-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.fr-page-info {
  font-size: 12.5px;
  color: var(--gray_text);
  font-weight: 500;
}

@media (max-width: 700px) {
  .fr-bar-label { width: 90px; font-size: 11px; }
  .fr-search-box { min-width: 100%; max-width: none; }
  .fr-clear-btn { margin-left: 0; }
}

/* ============================================================
   New Benchmark Allocation — client-facing 5-step guided flow.
   Reuses pf-section-card / pf-strategy-card / pf-nb-* / pf-data-table /
   pf-explore-stat / pf-category-pill wherever it already fits; the
   pieces below are the few genuinely new bits: the step nav, the
   Trim/Add/Keep action pills, and the collapsed advisor-detail toggle.
   ============================================================ */

.pf-nbstep-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 22px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.pf-nbstep-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 8px 14px 8px 8px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    color: #94A3B8;
    cursor: pointer;
    transition: color .15s, background .15s;
    white-space: nowrap;
}

.pf-nbstep-btn:hover { background: #F8FAFC; color: #475569; }

.pf-nbstep-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #F1F5F9;
    color: #94A3B8;
    font-size: 11.5px;
    font-weight: 700;
    flex-shrink: 0;
}

.pf-nbstep-btn--active { color: #1E293B; background: #EFF6FF; }
.pf-nbstep-btn--active .pf-nbstep-num { background: #2563EB; color: #fff; }

.pf-nbstep-btn--done .pf-nbstep-num { background: #DCFCE7; color: #15803D; }

.pf-nbstep-connector {
    width: 18px;
    height: 1.5px;
    background: #E2E8F0;
    flex-shrink: 0;
}

.pf-nbstep-panel { display: none; }
.pf-nbstep-panel--active { display: block; }

/* Trim / Add / Keep — client-friendly action pills. Colors reuse the
   same red/green/grey already used across pf-category-pill and the
   other pf-nb-* status pills, just remapped to this specific meaning:
   Trim = danger, Add = success, Keep = neutral. */
.pf-nb-action-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 999px;
    white-space: nowrap;
}

.pf-nb-action-pill--trim { background: #FEE2E2; color: #B91C1C; }
.pf-nb-action-pill--add   { background: #DCFCE7; color: #15803D; }
.pf-nb-action-pill--keep  { background: #F1F5F9; color: #475569; }

.pf-nb-flow-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 18px;
}

.pf-nb-flow-hero-stat-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #64748B;
    margin-bottom: 4px;
}

.pf-nb-flow-hero-stat-value {
    font-size: 19px;
    font-weight: 700;
    color: #0F172A;
    font-variant-numeric: tabular-nums;
}

.pf-nb-flow-action-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 18px 20px;
}

.pf-nb-flow-action-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

.pf-nb-flow-action-icon--trim { background: #FEE2E2; color: #B91C1C; }
.pf-nb-flow-action-icon--add  { background: #DCFCE7; color: #15803D; }
.pf-nb-flow-action-icon--keep { background: #F1F5F9; color: #475569; }

.pf-nb-flow-empty-note {
    font-size: 12.5px;
    color: #94A3B8;
    padding: 6px 0;
}

.pf-nb-flow-step-nav-btns {
    display: flex;
    justify-content: space-between;
    margin-top: 22px;
}

/* Collapsed advisor-only detail — native <details>, no JS needed. Keeps
   every internal calculation available without showing it by default. */
.pf-nb-advisor-detail {
    margin-top: 34px;
    border-top: 1.5px dashed #E2E8F0;
    padding-top: 18px;
}

.pf-nb-advisor-detail > summary {
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 600;
    color: #64748B;
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pf-nb-advisor-detail > summary::-webkit-details-marker { display: none; }
.pf-nb-advisor-detail > summary::before { content: '▸'; font-size: 10px; }
.pf-nb-advisor-detail[open] > summary::before { content: '▾'; }

.pf-nb-advisor-detail-body { margin-top: 16px; }

.pf-nb-flow-alignment-note {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    color: #15803D;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 12.5px;
    font-weight: 600;
    margin-top: 16px;
}

.pf-nb-flow-skeleton {
    background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 37%, #F1F5F9 63%);
    background-size: 400% 100%;
    animation: pf-nb-skeleton-shine 1.4s ease infinite;
    border-radius: 8px;
}
@keyframes pf-nb-skeleton-shine {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

.pf-nb-flow-compare-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 18px;
    align-items: center;
    margin-bottom: 12px;
}

.pf-nb-flow-compare-label {
    display: block;
    font-size: 11px;
    color: #64748B;
    margin-bottom: 4px;
}

.pf-nb-flow-compare-value {
    font-weight: 700;
    font-size: 15px;
    color: #0F172A;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 700px) {
    .pf-nb-flow-hero-stats { gap: 14px; }
    .pf-nb-flow-step-nav-btns { flex-direction: column; gap: 10px; }
    .pf-nb-flow-compare-row { grid-template-columns: 1fr; gap: 10px; text-align: left !important; }
}

/* Step 1 hero — flat light-blue panel (your existing --light_primary
   brand tint, not a new color), split into message+features / donut. */
.pf-nb-flow-hero-bg {
    background: var(--light_primary);
    border-radius: 14px;
    padding: 26px 28px;
    margin-bottom: 20px;
}

.pf-nb-flow-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 22px;
    align-items: start;
}

@media (max-width: 1100px) {
    .pf-nb-flow-hero-grid { grid-template-columns: 1fr; }
}

.pf-nb-flow-target-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    border-top: 1px solid #F1F5F9;
    font-size: 13px;
    font-weight: 700;
    color: #0F172A;
}
.pf-nb-flow-target-row:first-of-type { border-top: none; }

.pf-nb-flow-movement-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 0;
    border-top: 1px solid #F1F5F9;
}
.pf-nb-flow-movement-row:first-of-type { border-top: none; }

.pf-nb-flow-movement-cat {
    font-size: 12.5px;
    font-weight: 700;
    color: #0F172A;
    flex: 1;
    min-width: 0;
}

.pf-nb-flow-movement-change {
    font-size: 11.5px;
    color: #64748B;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Step 2 — Target vs Current Allocation, per-category row cards */
.pf-nb-flow-alloc-row {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 90px 140px;
    gap: 16px;
    align-items: center;
    border: 1px solid #E2E8F0;
    border-left: 4px solid var(--nb-accent, #2563EB);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
    background: #fff;
}

.pf-nb-flow-alloc-cat-name { font-size: 13.5px; font-weight: 700; color: #0F172A; display: block; }
.pf-nb-flow-alloc-cat-sub { font-size: 11.5px; color: #94A3B8; }

.pf-nb-flow-alloc-mini-label {
    color: #94A3B8;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-bottom: 6px;
    display: block;
}

.pf-nb-flow-alloc-big { font-size: 21px; font-weight: 800; color: #0F172A; font-variant-numeric: tabular-nums; }

.pf-nb-flow-alloc-delta { font-weight: 800; font-size: 14px; text-align: center; font-variant-numeric: tabular-nums; }
.pf-nb-flow-alloc-delta--trim { color: #DC2626; }
.pf-nb-flow-alloc-delta--add { color: #059669; }
.pf-nb-flow-alloc-delta--keep { color: #64748B; }

@media (max-width: 900px) {
    .pf-nb-flow-alloc-row { grid-template-columns: 1fr; gap: 8px; }
    .pf-nb-flow-alloc-delta { text-align: left; }
}

/* Step 3 — "How this gets funded" strip (Recommended Funds), reused both
   as a full-width strip and, more compactly, inside the sidebar card. */
.pf-nb-flow-funding-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 20px;
}

@media (max-width: 900px) {
    .pf-nb-flow-funding-strip { grid-template-columns: 1fr; }
}

/* Step 3 — Recommended Funds, per-fund cards + sidebar (per reference
   "Recommended Funds Variant B") */
.pf-nb-flow-recommendation-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(300px, .9fr);
    gap: 16px;
    margin-top: 18px;
}

@media (max-width: 1100px) {
    .pf-nb-flow-recommendation-layout { grid-template-columns: 1fr; }
}

.pf-nb-flow-fund-list {
    display: grid;
    gap: 12px;
}

.pf-nb-flow-fund-name {
    font-size: 14px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 8px;
    line-height: 1.3;
}

.pf-nb-fund-table-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.pf-nb-fund-status-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: #F2F5FA;
    color: #475569;
    font-size: 12.5px;
    font-weight: 700;
}

.pf-nb-fund-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    flex-shrink: 0;
}

.pf-nb-fund-status-dot--trim,
.pf-nb-fund-status-pill--trim { background: #FEE2E2; color: #B91C1C; }
.pf-nb-fund-status-dot--suggested,
.pf-nb-fund-status-pill--suggested { background: #DBEAFE; color: #2563EB; }
.pf-nb-fund-status-dot--held,
.pf-nb-fund-status-pill--held { background: #EDE9FE; color: #7C3AED; }
.pf-nb-fund-status-dot--held-as-is,
.pf-nb-fund-status-pill--held-as-is { background: #EEF2F7; color: #475569; }
.pf-nb-fund-status-dot--excluded,
.pf-nb-fund-status-pill--excluded { background: #F1F5F9; color: #64748B; }

.pf-nb-fund-status-dot { background: currentColor; }

.pf-nb-fund-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    height: 30px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 800;
    white-space: nowrap;
}

.pf-nb-fund-table th,
.pf-nb-fund-table td {
    vertical-align: middle;
}

.pf-nb-fund-th-index {
    width: 56px;
    text-align: center !important;
}

.pf-nb-fund-td-index {
    text-align: center;
}

.pf-nb-fund-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #EFF6FF;
    color: #2563EB;
    font-size: 15px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.pf-nb-fund-row--featured td {
    background: #F3F8FF;
}

.pf-nb-fund-td-allocation {
    min-width: 160px;
}

.pf-nb-fund-allocation-value {
    font-size: 14px;
    font-weight: 800;
    color: #0F172A;
    font-variant-numeric: tabular-nums;
}

.pf-nb-fund-td-amount {
    font-size: 14px;
    font-weight: 700;
    color: #0F172A;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.pf-nb-flow-return-badge {
    display: inline-flex;
    justify-content: center;
    min-width: 70px;
    border-radius: 999px;
    background: #D1FAE5;
    color: #047857;
    padding: 6px 11px;
    font-size: 13px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.pf-nb-flow-side-legend-row {
    display: grid;
    grid-template-columns: 10px 1fr auto;
    align-items: center;
    gap: 9px;
    font-size: 12.5px;
    font-weight: 700;
    color: #334155;
    padding: 6px 0;
}

.pf-nb-flow-eyebrow {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #64748B;
    margin-bottom: 8px;
}

.pf-nb-flow-hero-title {
    font-size: 22px;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.3;
    margin: 0 0 10px;
}

.pf-nb-flow-hero-title-accent { color: var(--primary); }

.pf-nb-flow-hero-desc {
    font-size: 13px;
    color: #64748B;
    line-height: 1.55;
    max-width: 480px;
    display: block;
    margin-bottom: 18px;
}

.pf-nb-flow-feature-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
}
.pf-nb-flow-feature-row:first-of-type { margin-top: 0; }

.pf-nb-flow-feature-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
}

.pf-nb-flow-feature-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #0F172A;
    display: block;
}

.pf-nb-flow-feature-desc {
    font-size: 11.5px;
    color: #64748B;
    line-height: 1.4;
}

.pf-nb-flow-info-box {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: var(--light_primary);
    border-radius: 10px;
    padding: 10px 12px;
    margin-top: 14px;
    font-size: 11px;
    color: #3B4A6B;
    line-height: 1.5;
}
.pf-nb-flow-info-box svg { flex-shrink: 0; color: var(--primary); margin-top: 1px; }

@media (max-width: 900px) {
    .pf-nb-flow-hero-grid { grid-template-columns: 1fr; }
}

/* "How rebalancing works" — 3-step mini header + example rows */
.pf-nb-flow-rebal-head-note {
    font-size: 11px;
    color: #94A3B8;
    text-align: right;
}

.pf-nb-flow-rebal-cols {
    display: grid;
    grid-template-columns: 1.3fr 1fr .3fr 1fr .3fr 1.8fr;
    gap: 12px;
    align-items: start;
    margin-top: 18px;
    margin-bottom: 8px;
}

.pf-nb-flow-rebal-col-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pf-nb-flow-rebal-col-title { display: block; font-size: 12.5px; font-weight: 700; color: #0F172A; }
.pf-nb-flow-rebal-col-sub { display: block; font-size: 11px; color: #94A3B8; }

.pf-nb-flow-rebal-row {
    display: grid;
    grid-template-columns: 1.3fr 1fr .3fr 1fr .3fr 1.8fr;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid #F1F5F9;
}
.pf-nb-flow-rebal-row:first-of-type { border-top: none; }

.pf-nb-flow-rebal-cat {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    padding-left: 10px;
    border-left: 3px solid var(--nb-accent, #2563EB);
}

.pf-nb-flow-rebal-pill {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 8px 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #0F172A;
    font-variant-numeric: tabular-nums;
}

.pf-nb-flow-rebal-arrow { text-align: center; color: #CBD5E1; }

.pf-nb-flow-rebal-action {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pf-nb-flow-rebal-action-desc { font-size: 11.5px; color: #94A3B8; }

@media (max-width: 900px) {
    .pf-nb-flow-rebal-cols { display: none; }
    .pf-nb-flow-rebal-row {
        grid-template-columns: 1fr;
        gap: 6px;
        text-align: left;
    }
    .pf-nb-flow-rebal-arrow { display: none; }
}
/******************************* end_fund_ratings *************************************/
