/* CFMS User / Mine Page Styles - Matching Exact Confluixms UI */
html, body {
  height: auto !important;
  min-height: 100% !important;
}

.mine-container {
  min-height: 100vh;
  background-color: #f5f5f5;
  padding-bottom: 90px;
  position: relative;
  overflow-x: hidden;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Golden Gradient Top Header */
.mine_top_bg {
  width: 100%;
  background: linear-gradient(248deg, #fde1b2 0%, #ce8225 100%);
  box-shadow: none;
  padding: 20px 16px 115px 16px;
  position: relative;
  box-sizing: border-box;
}

.mine_top_bg::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55px;
  background: linear-gradient(180deg, rgba(245, 245, 245, 0) 0%, #f5f5f5 100%);
  pointer-events: none;
  z-index: 1;
}

.gift_box {
  position: absolute;
  top: 20px;
  right: 16px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

.gift_box img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* User Info Profile Row */
.user-info {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.avatarBox {
  position: relative;
  width: 64px;
  height: 64px;
  cursor: pointer;
  flex-shrink: 0;
}

.avatar_img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #dbeafe;
  display: block;
}

.avatarEdit_img_Box {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 22px;
  height: 22px;
}

.avatarEdit_img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.user-detail {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.user_name {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: #000;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

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

.member_card {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: #e8f4ee;
  border-radius: 20px;
  border: 1px solid #ffffff;
  cursor: pointer;
}

.member_card_icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

.card_text {
  font-size: 11px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  line-height: 1.2;
}

/* White Card: Credit Dashboard & Financial Stats */
.money-card {
  box-sizing: border-box;
  background-color: #fff;
  border-radius: 16px;
  width: calc(100% - 24px);
  max-width: 440px;
  margin: -92px auto 14px auto;
  padding: 18px 16px 18px 16px;
  position: relative;
  z-index: 3;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.circle_title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #b45309;
  cursor: pointer;
  margin-bottom: 6px;
  position: absolute;
  top: 16px;
  left: 16px;
  right: auto;
}

.circle_img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.money-grid {
  position: relative;
  width: 100%;
}

/* 3D Engraved Right Circular Gauge (conic-gradient ring 0-100%) */
.circle {
  position: absolute;
  left: auto;
  right: 12px;
  transform: none;
  top: -66px;
  width: 136px;
  height: 136px;
  border-radius: 50%;
  background: conic-gradient(#111827 100%, #e5e7eb 0);
  border: none;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.08),
    0 0 0 8px #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 6;
}

.circle::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.06);
  z-index: 1;
}

.circle_text_box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  margin-top: 0;
}

.circle_text_box .number {
  font-size: 24px;
  font-weight: 700;
  font-style: italic;
  color: #111827;
  line-height: 1;
}

.circle_text_box .text {
  font-size: 11.5px;
  font-weight: 600;
  color: #111827;
  line-height: 1.2;
  margin-top: 2px;
}

.circle_text_box .btn {
  margin-top: 4px;
  background: #fced23;
  border: none;
  border-radius: 12px;
  padding: 3px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #111827;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.4;
  height: auto !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
}

/* Balance */
.money_max_box {
  margin-top: 30px;
  margin-bottom: 16px;
  padding: 12px 14px;
  width: 58%;
  box-sizing: border-box;
  border-radius: 10px;
  background: linear-gradient(90deg, #f3f4f6 0%, rgba(243, 244, 246, 0.12) 100%);
  text-align: left;
}

.submit-btn,
.submit_btn {
  width: 90% !important;
  padding: 14px 0 !important;
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%) !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  text-align: center !important;
  margin: 20px auto !important;
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.25) !important;
  cursor: pointer;
}

.money_box {
  display: flex;
  flex-direction: column;
}

.money_box .amount {
  font-family: PTSerif, "Times New Roman", serif;
  font-weight: 700;
  font-style: italic;
  font-size: 32px;
  color: #000;
  line-height: 1.1;
}

.money_box .label {
  font-size: 13px;
  color: #333;
  margin-top: 4px;
}

/* 4 Financial Stats Grid (2x2) */
.money_list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 10px;
  margin-bottom: 18px;
}

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

.money-item .money_img {
  width: 24px;
  height: 24px;
  min-width: 24px;
  object-fit: contain;
}

.money_item_rigth {
  display: flex;
  flex-direction: column;
}

.money_item_rigth .amount {
  font-family: PTSerif, "Times New Roman", serif;
  font-weight: 600;
  font-style: italic;
  font-size: 16px;
  color: #000;
  line-height: 1.2;
}

.money_item_rigth .label {
  font-size: 12px;
  color: #666;
  white-space: nowrap;
  line-height: 1.2;
}

/* Action Buttons */
.btn_box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.btn_box .btn {
  flex: 1;
  height: 42px;
  background: #fced23;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(252, 237, 35, 0.35);
  text-decoration: none;
}

.btn_box .btn.Withdrawal {
  background: #111827;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(17, 24, 39, 0.3);
}

/* Quick Action Card (Exactly 4 items) */
.function-card {
  box-sizing: border-box;
  background-color: #fff;
  border-radius: 12px;
  width: calc(100% - 24px);
  max-width: 440px;
  margin: 0 auto 12px auto;
  padding: 16px 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.function-card .function-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.function-card .function-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  text-align: center;
}

.function-card .function-item img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  margin-bottom: 6px;
}

.function-card .function-item span {
  font-size: 11px;
  color: #333;
  line-height: 1.2;
  text-align: center;
  word-break: break-word;
}

/* Menu List Card (Exactly 5 items) */
.function-card2 {
  box-sizing: border-box;
  background-color: #fff;
  width: calc(100% - 24px);
  max-width: 440px;
  margin: 0 auto 20px auto;
  border-radius: 12px;
  padding: 4px 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.function-card2 .function-grid .function-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
}

.function-card2 .function-grid .function-item:last-child {
  border-bottom: none;
}

.function-card2 .item_left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.function-card2 .item_left img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.function-card2 .item_left span {
  font-size: 13px;
  color: #333;
  font-weight: 500;
}

.function-card2 .item_right {
  width: 14px;
  height: 14px;
  object-fit: contain;
  opacity: 0.6;
}

/* Floating Message Button */
.contactWay_box {
  position: fixed;
  right: 0;
  top: 60%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: #111827;
  border-radius: 14px 0 0 14px;
  padding: 8px 10px 8px 8px;
  color: #fff;
  z-index: 99;
  cursor: pointer;
  box-shadow: -2px 3px 8px rgba(17, 24, 39, 0.3);
}

.contactWay_box img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.contactWay_box span {
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  line-height: 1;
}

/* Credit Modal */
.cfms-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.cfms-modal-card {
  width: 90%;
  max-width: 320px;
  background: #fff;
  border-radius: 14px;
  padding: 20px 20px 16px;
  text-align: center;
  box-sizing: border-box;
}

.cfms-modal-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  margin-bottom: 12px;
}

.cfms-modal-card p {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 16px;
  text-align: left;
}

.cfms-modal-card button {
  width: 100%;
  height: 38px;
  background: #111827;
  color: #fff;
  border-radius: 19px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* Bottom Tabbar Overrides */
#app .footer {
  background: #ffffff !important;
  border-top: 1px solid #eeeeee !important;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.03) !important;
}

#app .footer .footer_item .footer_icon {
  width: 24px !important;
  height: 24px !important;
  margin-bottom: 3px !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

#app .footer .footer_item.footer_item_active {
  color: #111827 !important;
}

#app .footer .footer_item .footer_icon.footer_icon_home {
  background-image: url("../img/cfms/tab/home.png") !important;
}
#app .footer .footer_item.footer_item_active .footer_icon.footer_icon_home {
  background-image: url("../img/cfms/tab/home_a.png") !important;
}
#app .footer .footer_item .footer_icon.footer_icon_invest {
  background-image: url("../img/cfms/tab/task.png") !important;
}
#app .footer .footer_item.footer_item_active .footer_icon.footer_icon_invest {
  background-image: url("../img/cfms/tab/task_a.png") !important;
}
#app .footer .footer_item .footer_icon.footer_icon_serve {
  background-image: url("../img/cfms/tab/msg.png") !important;
  position: relative !important;
}
#app .footer .footer_item.footer_item_active .footer_icon.footer_icon_serve {
  background-image: url("../img/cfms/tab/msg_a.png") !important;
  position: relative !important;
}
#app .footer .footer_item .footer_icon.footer_icon_team {
  background-image: url("../img/cfms/tab/level.png") !important;
}
#app .footer .footer_item.footer_item_active .footer_icon.footer_icon_team {
  background-image: url("../img/cfms/tab/level_a.png") !important;
}
#app .footer .footer_item .footer_icon.footer_icon_user {
  background-image: url("../img/cfms/tab/mine.png") !important;
}
#app .footer .footer_item.footer_item_active .footer_icon.footer_icon_user {
  background-image: url("../img/cfms/tab/mine_a.png") !important;
}

/* Credit Center (/creditScore) Page */
.cfms-credit-page {
  min-height: 100vh;
  background-color: #ffffff;
  color: #111111;
  font-family: "Times New Roman", Georgia, serif;
  padding-bottom: 40px;
  box-sizing: border-box;
}

.cfms-credit-navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 52px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.cfms-credit-navbar .credit-back-btn {
  position: absolute;
  left: 12px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cfms-credit-navbar .credit-back-btn svg {
  width: 22px;
  height: 22px;
}

.cfms-credit-navbar .credit-nav-title {
  font-size: 17px;
  font-weight: 700;
  color: #111111;
}

.cfms-credit-body {
  padding: 8px 18px 24px 18px;
}

.credit-red-title {
  color: #c81919;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  margin: 4px 0 16px 0;
}

.credit-para {
  font-size: 15px;
  line-height: 1.48;
  color: #111111;
  margin: 0 0 14px 0;
}

.credit-sec-title {
  font-size: 16px;
  font-weight: 700;
  color: #111111;
  margin: 20px 0 10px 0;
}

.credit-sub {
  font-size: 15px;
  line-height: 1.45;
  color: #111111;
  margin: 0 0 8px 0;
}

.credit-list p {
  font-size: 15px;
  line-height: 1.48;
  color: #111111;
  margin: 0 0 6px 0;
}

#app:has(.cfms-credit-page) #footer {
  display: none !important;
}

/* Avatar Personalisation (/headPortrait) Page */
.cfms-avatar-page {
  min-height: 100vh;
  background-color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding-bottom: 100px;
  box-sizing: border-box;
}

#app:has(.cfms-avatar-page) #footer {
  display: none !important;
}

.avatar-hero-head {
  padding: 36px 0 28px 0;
  background: linear-gradient(180deg, #2bcb82 0%, #a5ecbb 100%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-preview-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.avatar-preview-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #ffffff;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.avatar-preview-label {
  font-size: 13px;
  color: #ffffff;
  font-weight: 500;
}

.avatar-section-title {
  margin: 22px 18px 16px 18px;
  font-size: 16px;
  font-weight: 600;
  color: #111111;
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 12px;
  padding: 4px 18px 24px 18px;
  justify-items: center;
}

.avatar-grid-item {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.avatar-grid-item img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  background: #f0f0f0;
}

.avatar-grid-item.active {
  border-color: #2bcb82;
  background: #e8faf0;
  transform: scale(1.05);
}

.avatar-btn-box {
  position: fixed;
  left: 0;
  bottom: -90px;
  width: 100%;
  padding: 14px 16px 20px 16px;
  background: #ffffff;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
  transition: bottom 0.2s ease;
  z-index: 60;
}

.avatar-btn-box.show {
  bottom: 0;
}

.avatar-confirm-btn {
  width: 100%;
  height: 44px;
  background: #111827;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

/* Job Management (/jobManagement) Page */
.cfms-job-page {
  min-height: 100vh;
  background-color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  box-sizing: border-box;
}

#app:has(.cfms-job-page) #footer,
#app:has(.cfms-jobrec-page) #footer {
  display: none !important;
}

.cfms-job-header {
  height: 175px;
  background: linear-gradient(180deg, #111827 0%, #059148 100%);
  box-sizing: border-box;
}

.job-navbar {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 16px;
}

.job-back-btn {
  position: absolute;
  left: 14px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.job-back-btn svg {
  width: 22px;
  height: 22px;
}

.job-nav-title {
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
}

.job-record-btn {
  position: absolute;
  right: 14px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.job-record-btn svg {
  width: 21px;
  height: 21px;
}

.cfms-job-card {
  width: calc(100% - 32px);
  max-width: 440px;
  margin: -88px auto 24px auto;
  background: #ffffff;
  border-radius: 12px;
  padding: 28px 20px 32px 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  text-align: center;
  box-sizing: border-box;
}

.job-illustration {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin: 0 auto 14px auto;
  display: block;
}

.job-card-title {
  font-family: "Times New Roman", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 10px;
}

.job-card-sub {
  font-size: 14px;
  color: #888888;
  line-height: 1.4;
}

.cfms-job-btn-wrap {
  width: calc(100% - 32px);
  max-width: 440px;
  margin: 0 auto;
}

.cfms-job-more-btn {
  width: 100%;
  height: 46px;
  background: #111827;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

/* Application Registration (/jobRecords) Page */
.cfms-jobrec-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #f4f9f5 0%, #ffffff 55%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  box-sizing: border-box;
}

.jobrec-empty {
  display: flex;
  justify-content: center;
  padding-top: 110px;
}

.jobrec-empty img {
  width: 240px;
  max-width: 70%;
  object-fit: contain;
}

.jobrec-list {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.jobrec-item {
  background: #ffffff;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.jobrec-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.jobrec-title {
  font-size: 15px;
  font-weight: 600;
  color: #111111;
}

.jobrec-status {
  font-size: 12px;
  font-weight: 600;
  color: #d97706;
}

.jobrec-status.approved {
  color: #111827;
}

.jobrec-status.rejected {
  color: #dc2626;
}

.jobrec-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #777777;
}

/* Home Page Popup */
.cfms-home-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.cfms-home-popup-card {
  width: 100%;
  max-width: 340px;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.cfms-home-popup-head {
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  color: #ffffff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
}

.cfms-home-popup-head .popup-x {
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.cfms-home-popup-body {
  padding: 18px;
  max-height: 55vh;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.55;
  color: #222222;
  word-break: break-word;
}

.cfms-home-popup-body img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.cfms-home-popup-foot {
  padding: 0 18px 18px 18px;
}

.cfms-home-popup-btn {
  width: 100%;
  height: 40px;
  background: #111827;
  color: #ffffff;
  border: none;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

/* Quick Actions Row 2 Gap & Icon Badges */
.function-card .function-grid {
  row-gap: 16px;
}

.qa-svg-badge {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.qa-svg-badge svg {
  width: 18px;
  height: 18px;
}

.qa-draw { background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%); }
.qa-yuebao { background: linear-gradient(135deg, #374151 0%, #1f2937 100%); }
.qa-coupons { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.qa-lang { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
