/* IDC cloud console visual treatment for the YangCube clientarea. */
:root {
  --idc-ink: #102650;
  --idc-muted: #7f91af;
  --idc-line: #e6edf8;
  --idc-blue: #286cff;
  --idc-blue-2: #3d91f7;
  --idc-page: #f7faff;
  --idc-card: #ffffff;
  --idc-shadow: 0 8px 24px rgba(33, 76, 145, .055);
}

body:has(.idc-dashboard) {
  background: var(--idc-page);
  color: var(--idc-ink);
}

body:has(.idc-dashboard) #page-topbar {
  height: 70px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid #edf2f9;
  box-shadow: none;
}

body:has(.idc-dashboard) .navbar-header {
  height: 70px;
  padding: 0 28px 0 228px;
  background: transparent;
}

body:has(.idc-dashboard) .navbar-brand-box {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  width: 200px;
  height: 70px;
  align-items: center;
  justify-content: center;
  background: #fff;
}

body:has(.idc-dashboard) .yc-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--idc-ink);
  text-decoration: none;
}

body:has(.idc-dashboard) .yc-sidebar-brand img { width: 37px; height: 37px; object-fit: contain; }
body:has(.idc-dashboard) .yc-sidebar-brand b { display: block; font-size: 17px; line-height: 1.1; }
body:has(.idc-dashboard) .yc-sidebar-brand em { display: block; margin-top: 4px; color: #a6b6cf; font-size: 9px; font-style: normal; letter-spacing: .2px; }
body:has(.idc-dashboard) #vertical-menu-btn { display: none; }
body:has(.idc-dashboard) .navbar-header > .d-flex:last-child {
  min-width: 0;
  flex: 1 1 auto;
  gap: 2px;
}
.yc-header-search, .yc-sidebar-promo { display: none; }
body:has(.idc-dashboard) .yc-header-search {
  display: flex;
  width: min(528px, 42vw);
  height: 36px;
  align-items: center;
  flex: 0 1 528px;
  margin-left: 12px;
  margin-right: 22px;
  padding: 0 16px;
  border: 1px solid #edf2f8;
  border-radius: 22px;
  background: #f7f9fd;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
body:has(.idc-dashboard) .yc-header-search:focus-within {
  border-color: #c5d9ff;
  background: #fff;
  box-shadow: 0 5px 16px rgba(40, 108, 255, .1);
}
body:has(.idc-dashboard) .yc-header-search i { color: #7185a5; font-size: 18px; }
body:has(.idc-dashboard) .yc-header-search input {
  width: 100%;
  margin-left: 10px;
  border: 0;
  outline: 0;
  color: #263b62;
  background: transparent;
  font-size: 13px;
}
body:has(.idc-dashboard) .yc-header-search input::placeholder { color: #9aaac1; }
body:has(.idc-dashboard) .navbar-header .header-item { color: #162b54; }
body:has(.idc-dashboard) .navbar-header .noti-icon { width: 42px; height: 54px; font-size: 20px; }
body:has(.idc-dashboard) .navbar-header .user-center_header { border: 2px solid #eef4ff; }
body:has(.idc-dashboard) .navbar-header .badge { top: 11px; right: 4px; }
body:has(.idc-dashboard) .yc-language-item .header-item { display: inline-flex; align-items: center; gap: 7px; padding: 0 8px; font-size: 13px; }
body:has(.idc-dashboard) .yc-language-item { margin-left: auto; }
body:has(.idc-dashboard) .yc-language-icon { color: #1a315b; font-size: 19px; }
body:has(.idc-dashboard) .yc-language-arrow { color: #8192ae; font-size: 14px; }
body:has(.idc-dashboard) .yc-language-item + .yc-cart-item { display: none !important; }
body:has(.idc-dashboard) #page-header-user-dropdown > span {
  font-size: 0;
}
body:has(.idc-dashboard) #page-header-user-dropdown > span::after {
  content: '用户中心';
  color: #162b54;
  font-size: 13px;
}

body:has(.idc-dashboard) .vertical-menu {
  top: 70px;
  width: 200px;
  background: #fff;
  border-right: 1px solid #edf2f9;
  box-shadow: none;
}
body:has(.idc-dashboard) .vertical-menu #side-menu { padding: 10px 16px; }
body:has(.idc-dashboard) .vertical-menu #side-menu > li > a {
  height: 46px;
  margin: 4px 0;
  padding: 0 17px;
  border-radius: 10px;
  color: #6f83a5;
  font-size: 14px;
}
body:has(.idc-dashboard) .vertical-menu #side-menu > li > a:hover,
body:has(.idc-dashboard) .vertical-menu #side-menu > li.mm-active > a,
body:has(.idc-dashboard) .vertical-menu #side-menu > li:first-child > a {
  color: var(--idc-blue);
  background: #edf4ff;
}
body:has(.idc-dashboard) .vertical-menu #side-menu > li > a i { width: 25px; color: currentColor; font-size: 18px; }
body:has(.idc-dashboard) .yc-sidebar-status { display: none; }
body:has(.idc-dashboard) .yc-sidebar-promo {
  display: block;
  position: absolute;
  right: 14px;
  bottom: 26px;
  left: 30px;
  min-height: 168px;
  padding: 90px 15px 14px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(145deg, #f1f7ff, #deecff);
}
body:has(.idc-dashboard) .yc-sidebar-promo-art {
  position: absolute;
  top: -22px;
  right: 6px;
  width: 128px;
  height: 104px;
  background: url('/themes/clientarea/yangcube/assets_custom/img/user-center-ui/illustrations/cloud-console-hero-3d-transparent.png') center / contain no-repeat;
  opacity: .48;
}
body:has(.idc-dashboard) .yc-sidebar-promo strong { display: block; color: #1b3768; font-size: 13px; }
body:has(.idc-dashboard) .yc-sidebar-promo span { display: block; margin-top: 5px; color: #8ba1c0; font-size: 10px; }
body:has(.idc-dashboard) .yc-sidebar-promo a { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; padding: 6px 12px; border-radius: 16px; color: #fff; background: #2d73f4; font-size: 10px; }
body:has(.idc-dashboard) .yc-sidebar-promo a i { font-size: 14px; }

body:has(.idc-dashboard) .main-content { margin-left: 200px; padding-top: 70px; }
body:has(.idc-dashboard) .page-content { min-height: calc(100vh - 70px); padding: 0; }
body:has(.idc-dashboard) .page-content > .container-fluid { max-width: 1360px; margin: 0 auto; padding: 0 20px 36px 28px; }

.idc-dashboard { padding-top: 0; }
.idc-dashboard a { text-decoration: none; }
.idc-dashboard .idc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 278px; gap: 20px; }
.idc-dashboard .idc-main, .idc-dashboard .idc-side { min-width: 0; }
.idc-dashboard .idc-side { display: flex; flex-direction: column; gap: 14px; }
.idc-dashboard .idc-card { border: 1px solid var(--idc-line); border-radius: 9px; background: var(--idc-card); box-shadow: var(--idc-shadow); }
.idc-dashboard .idc-title { display: flex; align-items: center; justify-content: space-between; margin: 0 0 5px; color: var(--idc-ink); font-size: 17px; font-weight: 800; }
.idc-dashboard .idc-title::before { content: ''; width: 4px; height: 17px; margin-right: 10px; border-radius: 4px; background: var(--idc-blue); }
.idc-dashboard .idc-title > span:first-child { display: inline-flex; align-items: center; flex: 1; }
.idc-dashboard .idc-subtitle { margin: 0 0 13px 14px; color: #9aacbf; font-size: 12px; }
.idc-dashboard .idc-link { color: #7c8daa; font-size: 12px; font-weight: 400; }

.idc-hero { position: relative; min-height: 246px; overflow: hidden; padding: 28px 36px; background: linear-gradient(116deg, #e8f3ff 0%, #f9fcff 68%, #dcecff 100%); }
.idc-hero::after { content: ''; position: absolute; top: -54px; right: 18px; width: 470px; height: 320px; opacity: .98; background: url('/themes/clientarea/yangcube/assets_custom/img/user-center-ui/illustrations/cloud-console-hero-3d-transparent.png') center / contain no-repeat; filter: drop-shadow(0 18px 22px rgba(50, 111, 220, .11)); }
.idc-hero > * { position: relative; z-index: 1; }
.idc-hero .idc-kicker { display: inline-block; padding: 5px 13px; border-radius: 20px; color: var(--idc-blue); background: rgba(255,255,255,.8); font-size: 12px; }
.idc-hero h1 { margin: 12px 0 7px; color: #0e2757; font-size: 38px; line-height: 1.15; font-weight: 800; }
.idc-hero p { margin: 0; color: #29446f; font-size: 17px; }
.idc-hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 27px; }
.idc-hero .idc-primary { display: inline-flex; align-items: center; gap: 12px; padding: 12px 31px; border-radius: 24px; color: #fff; background: linear-gradient(90deg, #2869ff, #327bf2); font-size: 14px; }
.idc-hero .idc-primary:hover { color: #fff; box-shadow: 0 8px 18px rgba(40,108,255,.25); }
.idc-hero-benefits { display: flex; align-items: center; gap: 26px; }
.idc-hero-benefits span { display: grid; grid-template-columns: 34px auto; column-gap: 9px; align-items: center; min-width: 156px; }
.idc-hero-benefits span + span { padding-left: 24px; border-left: 1px solid rgba(154, 183, 224, .35); }
.idc-hero-benefits i { grid-row: span 2; display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #dceaff; border-radius: 50%; color: #3477ef; background: #fff; font-size: 18px; }
.idc-hero-benefits b { color: #25416d; font-size: 11px; font-weight: 700; }
.idc-hero-benefits small { margin-top: 2px; color: #9aabc4; font-size: 10px; }

.idc-section { margin-top: 27px; }
.idc-product-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.idc-product { min-height: 136px; padding: 16px; border: 1px solid var(--idc-line); border-radius: 9px; background: #fff; box-shadow: var(--idc-shadow); }
.idc-product:hover, .idc-plan:hover, .idc-region:hover { border-color: #bdd4ff; box-shadow: 0 12px 26px rgba(39,105,239,.12); transform: translateY(-2px); }
.idc-product .idc-icon { display: grid; width: 40px; height: 40px; place-items: center; margin-bottom: 14px; border-radius: 11px; color: #286cff; background: #eaf1ff; font-size: 20px; }
.idc-product:nth-child(2) .idc-icon { color: #7659df; background: #f0eaff; }
.idc-product:nth-child(3) .idc-icon { color: #20af7b; background: #e7faf3; }
.idc-product:nth-child(5) .idc-icon { color: #f58343; background: #fff0e6; }
.idc-product strong { display: block; color: #152b55; font-size: 14px; }
.idc-product small { display: block; margin-top: 8px; color: #a1aec1; font-size: 11px; white-space: nowrap; }

.idc-plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.idc-plan { position: relative; min-height: 228px; padding: 17px; border: 1px solid var(--idc-line); border-radius: 9px; background: #fff; box-shadow: var(--idc-shadow); }
.idc-plan .idc-tag { position: absolute; top: 0; right: 0; padding: 5px 11px; border-radius: 0 9px 0 9px; color: #fff; background: #ff7656; font-size: 11px; }
.idc-plan .idc-tag.green { background: #26c292; }
.idc-plan h3 { margin: 0 0 8px; color: #172d56; font-size: 14px; }
.idc-plan p { margin: 0; color: #9aaac1; font-size: 11px; }
.idc-plan .idc-price { margin: 12px 0 13px; color: #1f6cf4; font-size: 23px; font-weight: 800; }
.idc-plan .idc-price small { color: #9aa9bf; font-size: 12px; font-weight: 400; }
.idc-plan .idc-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; color: #667b9e; font-size: 10px; }
.idc-plan .idc-buy { display: block; margin-top: 15px; padding: 8px; border-radius: 7px; color: #fff; background: linear-gradient(90deg, #2666f2, #368df3); text-align: center; font-size: 12px; }

.idc-region-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.idc-region { padding: 14px 16px; border: 1px solid var(--idc-line); border-radius: 9px; background: #fff; box-shadow: var(--idc-shadow); }
.idc-region strong { display: block; color: #17305b; font-size: 12px; }
.idc-region small { display: block; margin-top: 6px; color: #9babbe; font-size: 10px; }
.idc-region b { display: block; margin-top: 7px; color: #52729d; font-size: 11px; }

.idc-account { overflow: hidden; }
.idc-account .idc-account-top { padding: 20px 20px 14px; }
.idc-account .idc-user { display: flex; align-items: center; gap: 12px; }
.idc-account .idc-avatar { width: 50px; height: 50px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; color: #fff; background: #68a0f5; font-size: 20px; }
.idc-account .idc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.idc-account .idc-user p { margin: 0 0 4px; color: #1f3560; font-size: 13px; }
.idc-account .idc-user strong { color: #172c55; font-size: 14px; }
.idc-account .idc-status { display: inline-block; margin-top: 7px; padding: 3px 8px; border-radius: 12px; color: #457ce4; background: #edf4ff; font-size: 10px; }
.idc-account .idc-balance { padding: 14px 20px 20px; border-top: 1px solid #f0f3f8; background: #fcfdff; }
.idc-account .idc-balance-label { color: #8d9db7; font-size: 12px; }
.idc-account .idc-balance-row { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.idc-account .idc-balance-value { color: #162c56; font-size: 22px; font-weight: 800; }
.idc-account .idc-recharge { padding: 6px 15px; border-radius: 18px; color: #fff; background: #3489f2; font-size: 11px; }
.idc-account .idc-metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 17px; }
.idc-account .idc-metric { text-align: center; border-left: 1px solid #ecf1f7; }
.idc-account .idc-metric:first-child { border-left: 0; }
.idc-account .idc-metric small { display: block; color: #9baabe; font-size: 10px; }
.idc-account .idc-metric strong { display: block; margin-top: 5px; color: #1c3159; font-size: 13px; }

.idc-side-card { padding: 18px 20px; }
.idc-side-card h3 { margin: 0 0 13px; color: #182f5a; font-size: 14px; }
.idc-quick a { display: flex; align-items: center; gap: 12px; padding: 9px 0; color: #55709b; font-size: 12px; }
.idc-quick a i { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 8px; color: #286cff; background: #eff5ff; font-size: 14px; }
.idc-notices a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 0; color: #50698f; font-size: 11px; }
.idc-notices a::before { content: ''; width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: #5eb5f0; }
.idc-notices a span { margin-left: auto; color: #a5b4c9; font-size: 10px; }
body:has(.idc-dashboard) .idc-notices > a:nth-of-type(n+5) { display: none; }
.idc-promo { position: relative; min-height: 132px; padding: 20px; overflow: hidden; background: linear-gradient(120deg, #f1f7ff, #dcecff); }
.idc-promo::after { content: ''; position: absolute; right: -8px; bottom: -16px; width: 125px; height: 105px; opacity: .9; background: url('/themes/clientarea/yangcube/assets_custom/img/user-center-ui/illustrations/cloud-console-hero-3d-transparent.png') center / contain no-repeat; filter: drop-shadow(0 10px 14px rgba(50, 111, 220, .12)); }
.idc-promo > * { position: relative; z-index: 1; }
.idc-promo strong { display: block; color: #15305e; font-size: 14px; }
.idc-promo p { margin: 7px 0 13px; color: #7e93b2; font-size: 11px; }
.idc-promo a { display: inline-block; padding: 7px 15px; border-radius: 16px; color: #fff; background: var(--idc-blue); font-size: 11px; }

@media (max-width: 1200px) {
  body:has(.idc-dashboard) .page-content > .container-fluid { padding-left: 18px; padding-right: 18px; }
  .idc-dashboard .idc-grid { grid-template-columns: 1fr; }
  .idc-dashboard .idc-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .idc-hero::after { right: -80px; opacity: .45; }
  body:has(.idc-dashboard) .yc-sidebar-promo { display: none; }
}
@media (max-width: 1360px) and (min-width: 1201px) {
  body:has(.idc-dashboard) .page-content > .container-fluid { padding-left: 20px; padding-right: 20px; }
  .idc-dashboard .idc-grid { grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; }
  .idc-product-grid { gap: 10px; }
  .idc-product { padding: 14px 12px; }
  .idc-product small { font-size: 10px; }
}
@media (max-width: 760px) {
  body:has(.idc-dashboard) .navbar-header { padding: 0 12px 0 70px; }
  body:has(.idc-dashboard) .navbar-brand-box { width: 70px; }
  body:has(.idc-dashboard) .yc-sidebar-brand span { display: none; }
  body:has(.idc-dashboard) .vertical-menu { width: 70px; }
  body:has(.idc-dashboard) .vertical-menu #side-menu { padding-left: 10px; padding-right: 10px; }
  body:has(.idc-dashboard) .vertical-menu #side-menu > li > a { justify-content: center; padding: 0; }
  body:has(.idc-dashboard) .vertical-menu #side-menu > li > a span { display: none; }
  body:has(.idc-dashboard) .yc-sidebar-promo { display: none; }
  body:has(.idc-dashboard) .main-content { margin-left: 70px; }
  body:has(.idc-dashboard) .yc-header-search { display: none; }
  body:has(.idc-dashboard) .yc-cart-item { display: none !important; }
  body:has(.idc-dashboard) .yc-message-item { display: none !important; }
  .idc-product-grid, .idc-plan-grid, .idc-region-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .idc-dashboard .idc-side { grid-template-columns: 1fr; }
  .idc-hero { padding: 24px; }
  .idc-hero h1 { font-size: 30px; }
  .idc-hero-benefits { display: none; }
  .idc-hero-actions { margin-top: 21px; }
}
@media (max-width: 900px) and (min-width: 761px) {
  body:has(.idc-dashboard) .yc-header-search { display: none; }
  body:has(.idc-dashboard) .yc-message-item,
  body:has(.idc-dashboard) .yc-cart-item { display: none !important; }
}
@media (max-width: 480px) {
  body:has(.idc-dashboard) .navbar-brand-box { width: 58px; }
  body:has(.idc-dashboard) .navbar-header { padding-left: 58px; }
  body:has(.idc-dashboard) .vertical-menu { width: 58px; }
  body:has(.idc-dashboard) .main-content { margin-left: 58px; }
  body:has(.idc-dashboard) .page-content > .container-fluid { padding-right: 12px; padding-left: 12px; }
  .idc-product-grid, .idc-plan-grid, .idc-region-grid { grid-template-columns: 1fr; }
  .idc-hero { min-height: 220px; padding: 22px 20px; }
  .idc-hero h1 { font-size: 26px; }
  .idc-hero p { font-size: 14px; }
  .idc-hero::after { right: -140px; opacity: .3; }
  .idc-dashboard .idc-side { display: flex; }
}

/* Final visual alignment: stable icon geometry and compact dashboard rhythm. */
body:has(.idc-dashboard) .vertical-menu #side-menu > li > a i {
  display: inline-grid;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  place-items: center;
  margin-right: 9px;
  border-radius: 8px;
  color: #7188ad;
  background: #f3f7fd;
  font-size: 16px;
}
body:has(.idc-dashboard) .vertical-menu #side-menu > li > a:hover i,
body:has(.idc-dashboard) .vertical-menu #side-menu > li.mm-active > a i,
body:has(.idc-dashboard) .vertical-menu #side-menu > li:first-child > a i {
  color: var(--idc-blue);
  background: #fff;
}
body:has(.idc-dashboard) .vertical-menu #side-menu > li > a.active,
body:has(.idc-dashboard) .vertical-menu #side-menu > li:first-child > a {
  color: var(--idc-blue) !important;
  background: #edf4ff !important;
}
body:has(.idc-dashboard) .vertical-menu #side-menu > li > a.active i,
body:has(.idc-dashboard) .vertical-menu #side-menu > li:first-child > a i {
  color: var(--idc-blue) !important;
}

.idc-hero {
  min-height: 246px;
  padding: 28px 36px;
  background: linear-gradient(112deg, #e7f2ff 0%, #f8fbff 62%, #e0efff 100%);
}
.idc-hero::after {
  top: -4px;
  right: 2px;
  width: 360px;
  height: 250px;
  opacity: 1;
}
.idc-hero-actions { gap: 28px; margin-top: 26px; }
.idc-hero .idc-primary {
  min-height: 46px;
  padding: 0 30px;
  border-radius: 24px;
}
.idc-hero .idc-primary i { margin-left: 2px; font-size: 18px; }
.idc-hero-benefits { gap: 24px; }
.idc-hero-benefits span { min-width: 165px; }
.idc-hero-benefits span + span { padding-left: 24px; }

.idc-product {
  position: relative;
  display: flex;
  min-height: 137px;
  flex-direction: column;
  padding: 17px 16px 14px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.idc-product .idc-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  margin-bottom: 13px;
  border-radius: 11px;
  font-size: 20px;
}
.idc-product strong {
  line-height: 1.25;
  white-space: nowrap;
}
.idc-product small {
  max-width: calc(100% - 8px);
  margin-top: 8px;
  overflow: hidden;
  color: #a0aec2;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.idc-product-arrow {
  position: absolute;
  right: 13px;
  bottom: 14px;
  color: #4d83ee;
  font-size: 16px;
}
.idc-product--dynamic .idc-icon,
.idc-product--cloud .idc-icon {
  color: #286cff;
  background: #eaf1ff;
}
.idc-product--cdn .idc-icon { color: #7659df; background: #f0eaff; }
.idc-product--storage .idc-icon { color: #20af7b; background: #e7faf3; }
.idc-product--database .idc-icon { color: #397be8; background: #e9f1ff; }
.idc-product--domain .idc-icon { color: #f58343; background: #fff0e6; }
.idc-product--more .idc-icon { color: #5281d9; background: #edf4ff; }

.idc-plan {
  min-height: 232px;
  padding: 17px;
}
.idc-plan .idc-specs {
  row-gap: 8px;
  column-gap: 10px;
}
.idc-plan .idc-specs span {
  display: flex;
  min-width: 0;
  align-items: center;
  color: #667b9e;
  white-space: nowrap;
}
.idc-plan .idc-specs i {
  width: 15px;
  flex: 0 0 15px;
  margin-right: 3px;
  color: #5b8df0;
  font-size: 12px;
  text-align: center;
}
.idc-plan .idc-buy {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0 8px;
}
.idc-plan .idc-buy i { font-size: 15px; }

.idc-region {
  min-height: 89px;
  padding: 14px 16px 13px;
}
.idc-region strong {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.idc-region-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(31, 72, 145, .18);
}
.idc-region-dot--hk, .idc-region-dot--sg, .idc-region-dot--jp {
  background: linear-gradient(135deg, #ff6673, #dc2c4c);
}
.idc-region-dot--us, .idc-region-dot--eu {
  background: linear-gradient(135deg, #6ea9fa, #2769db);
}

@media (max-width: 1360px) and (min-width: 1201px) {
  .idc-hero { padding-left: 30px; padding-right: 30px; }
  .idc-hero::after { top: -4px; right: 0; width: 360px; height: 250px; }
  .idc-product { padding-left: 13px; padding-right: 13px; }
  .idc-product small { font-size: 10px; }
}
@media (max-width: 1200px) {
  .idc-hero::after { top: -10px; right: 8px; width: 460px; height: 270px; opacity: .96; }
}
@media (max-width: 760px) {
  body:has(.idc-dashboard) .vertical-menu #side-menu > li > a i {
    margin-right: 0;
  }
  .idc-hero::after { top: 2px; right: -76px; width: 300px; height: 210px; opacity: .58; }
  .idc-product { min-height: 132px; }
}
@media (max-width: 480px) {
  .idc-hero::after { top: 12px; right: -104px; width: 260px; height: 180px; opacity: .42; }
  .idc-product { min-height: 128px; padding: 15px 14px 13px; }
  .idc-product .idc-icon { margin-bottom: 11px; }
  .idc-product small { font-size: 10px; }
}

/* Sidebar fidelity pass: keep the dashboard navigation quiet, aligned, and readable. */
body:has(.idc-dashboard) .vertical-menu {
  width: 200px !important;
  overflow: hidden;
  border-right: 1px solid #edf2f9 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}
body:has(.idc-dashboard) .vertical-menu::before,
body:has(.idc-dashboard) .vertical-menu::after {
  display: none !important;
}
body:has(.idc-dashboard) .yc-sidebar-scroll {
  position: relative;
  z-index: 1;
}
body:has(.idc-dashboard) #sidebar-menu {
  padding: 10px 16px 24px !important;
}
body:has(.idc-dashboard) #sidebar-menu > #side-menu,
body:has(.idc-dashboard) #sidebar-menu #side-menu {
  padding: 0 !important;
}
body:has(.idc-dashboard) #sidebar-menu > ul > li {
  margin: 4px 0 !important;
}
body:has(.idc-dashboard) #sidebar-menu #side-menu > li > a {
  position: relative;
  display: flex;
  width: 168px;
  min-height: 46px;
  align-items: center;
  margin: 0 !important;
  padding: 0 12px !important;
  color: #6e83a8 !important;
  border-radius: 10px !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  transform: none !important;
}
body:has(.idc-dashboard) #sidebar-menu #side-menu > li > a::before {
  display: none !important;
}
body:has(.idc-dashboard) #sidebar-menu #side-menu > li > a > i {
  display: inline-grid;
  width: 27px !important;
  min-width: 27px !important;
  height: 27px !important;
  flex: 0 0 27px;
  align-items: center;
  justify-content: center;
  margin: 0 9px 0 0 !important;
  padding: 0 !important;
  color: #6e86ad !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 18px !important;
  line-height: 1;
}
body:has(.idc-dashboard) #sidebar-menu #side-menu > li > a > span {
  min-width: 0;
  overflow: hidden;
  padding-right: 14px;
  color: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body:has(.idc-dashboard) #sidebar-menu #side-menu > li > a:hover,
body:has(.idc-dashboard) #sidebar-menu #side-menu > li.mm-active > a,
body:has(.idc-dashboard) #sidebar-menu #side-menu > li:first-child > a,
body:has(.idc-dashboard) #sidebar-menu #side-menu > li > a.active {
  color: var(--idc-blue) !important;
  background: #edf4ff !important;
  box-shadow: none !important;
}
body:has(.idc-dashboard) #sidebar-menu #side-menu > li > a:hover > i,
body:has(.idc-dashboard) #sidebar-menu #side-menu > li.mm-active > a > i,
body:has(.idc-dashboard) #sidebar-menu #side-menu > li:first-child > a > i,
body:has(.idc-dashboard) #sidebar-menu #side-menu > li > a.active > i {
  color: var(--idc-blue) !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body:has(.idc-dashboard) #sidebar-menu #side-menu > li > a.has-arrow::after {
  right: 10px !important;
  color: #8294b1 !important;
  font-size: 14px !important;
}
body:has(.idc-dashboard) #sidebar-menu #side-menu > li.mm-active > a.has-arrow::after,
body:has(.idc-dashboard) #sidebar-menu #side-menu > li:first-child > a.has-arrow::after,
body:has(.idc-dashboard) #sidebar-menu #side-menu > li > a.active.has-arrow::after {
  color: var(--idc-blue) !important;
}

/* Keep the selected sidebar item consistent on every authenticated page. */
body:not(.yc-login-shell) #sidebar-menu .mm-active > a,
body:not(.yc-login-shell) #sidebar-menu ul li a.active {
  color: var(--idc-blue) !important;
  background: #edf4ff !important;
  box-shadow: none !important;
}
body:not(.yc-login-shell) #sidebar-menu .mm-active > a::before,
body:not(.yc-login-shell) #sidebar-menu ul li a.active::before {
  opacity: 0 !important;
}
body:not(.yc-login-shell) #sidebar-menu .mm-active > a i,
body:not(.yc-login-shell) #sidebar-menu ul li a.active i {
  color: var(--idc-blue) !important;
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}
body:not(.yc-login-shell) #sidebar-menu .mm-active > .has-arrow::after,
body:not(.yc-login-shell) #sidebar-menu .has-arrow.active::after {
  color: var(--idc-blue) !important;
}

/*
 * Global console shell.
 * Keep dashboard content modules unchanged, but make its 200px shell the
 * default for every authenticated client-area page.
 */
body:not(.yc-login-shell) {
  background: var(--idc-page) !important;
  color: var(--idc-ink);
}

body:not(.yc-login-shell) #page-topbar {
  height: 70px;
  background: rgba(255, 255, 255, .96) !important;
  border-bottom: 1px solid #edf2f9 !important;
  box-shadow: none !important;
  backdrop-filter: none;
}

body:not(.yc-login-shell) .navbar-header {
  height: 70px;
  padding: 0 28px 0 228px;
  background: transparent;
}

body:not(.yc-login-shell) .navbar-brand-box {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  width: 200px !important;
  height: 70px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff !important;
  border-right: 0;
}

body:not(.yc-login-shell) .navbar-brand-box::after {
  display: none;
}

body:not(.yc-login-shell) .navbar-brand-box > .logo,
body:not(.yc-login-shell) .navbar-brand-box > h1.logo-lg {
  display: none !important;
}

body:not(.yc-login-shell) .yc-sidebar-brand {
  display: flex;
  width: auto;
  min-height: 70px;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  color: var(--idc-ink);
}

body:not(.yc-login-shell) .yc-sidebar-brand img {
  width: 37px;
  height: 37px;
  filter: none;
}

body:not(.yc-login-shell) .yc-sidebar-brand span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

body:not(.yc-login-shell) .yc-sidebar-brand b {
  max-width: 145px;
  overflow: hidden;
  color: var(--idc-ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: none;
  -webkit-text-fill-color: currentColor;
}

body:not(.yc-login-shell) .yc-sidebar-brand em {
  margin-top: 4px;
  color: #a6b6cf;
  font-size: 9px;
  font-weight: 400;
}

body:not(.yc-login-shell) #vertical-menu-btn {
  display: none;
}

body:not(.yc-login-shell) .yc-mobile-menu-toggle,
body:not(.yc-login-shell) .yc-mobile-sidebar-backdrop {
  display: none;
}

body:not(.yc-login-shell) .navbar-header > .d-flex:last-child {
  min-width: 0;
  flex: 1 1 auto;
  gap: 2px;
}

body:not(.yc-login-shell) .yc-header-search {
  display: flex;
  width: min(528px, 42vw);
  height: 36px;
  align-items: center;
  flex: 0 1 528px;
  margin-left: 12px;
  margin-right: 22px;
  padding: 0 16px;
  border: 1px solid #edf2f8;
  border-radius: 22px;
  background: #f7f9fd;
}

body:not(.yc-login-shell) .yc-header-search:focus-within {
  border-color: #c5d9ff;
  background: #fff;
  box-shadow: 0 5px 16px rgba(40, 108, 255, .1);
}

body:not(.yc-login-shell) .yc-header-search i {
  color: #7185a5;
  font-size: 18px;
}

body:not(.yc-login-shell) .yc-header-search input {
  width: 100%;
  margin-left: 10px;
  border: 0;
  outline: 0;
  color: #263b62;
  background: transparent;
  font-size: 13px;
}

body:not(.yc-login-shell) .yc-header-search input::placeholder {
  color: #9aaac1;
}

body:not(.yc-login-shell) .navbar-header .header-item {
  color: #162b54;
}

body:not(.yc-login-shell) .navbar-header .noti-icon {
  width: 42px;
  height: 54px;
  font-size: 20px;
}

body:not(.yc-login-shell) .navbar-header .user-center_header {
  border: 2px solid #eef4ff;
}

body:not(.yc-login-shell) .navbar-header .badge {
  top: 11px;
  right: 4px;
}

body:not(.yc-login-shell) .yc-language-item {
  margin-left: auto;
}

body:not(.yc-login-shell) .yc-language-item .header-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
  font-size: 13px;
}

body:not(.yc-login-shell) .yc-language-icon {
  color: #1a315b;
  font-size: 19px;
}

body:not(.yc-login-shell) .yc-language-arrow {
  color: #8192ae;
  font-size: 14px;
}

body:not(.yc-login-shell) #page-header-user-dropdown > span {
  font-size: 0;
}

body:not(.yc-login-shell) #page-header-user-dropdown > span::after {
  content: '用户中心';
  color: #162b54;
  font-size: 13px;
}

body:not(.yc-login-shell) .vertical-menu {
  top: 70px;
  width: 200px !important;
  overflow: hidden;
  background: #fff !important;
  border-right: 1px solid #edf2f9 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body:not(.yc-login-shell) .vertical-menu::before,
body:not(.yc-login-shell) .vertical-menu::after {
  display: none !important;
}

body:not(.yc-login-shell) #sidebar-menu {
  padding: 10px 16px 24px !important;
}

body:not(.yc-login-shell) #sidebar-menu > #side-menu,
body:not(.yc-login-shell) #sidebar-menu #side-menu {
  padding: 0 !important;
}

body:not(.yc-login-shell) #sidebar-menu > ul > li {
  margin: 4px 0 !important;
}

body:not(.yc-login-shell) #sidebar-menu #side-menu > li > a {
  position: relative;
  display: flex;
  width: 168px;
  min-height: 46px;
  align-items: center;
  margin: 0 !important;
  padding: 0 12px !important;
  color: #6f83a5 !important;
  border-radius: 10px !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 14px;
  font-weight: 600;
}

body:not(.yc-login-shell) #sidebar-menu #side-menu > li > a::before {
  display: none !important;
}

body:not(.yc-login-shell) #sidebar-menu #side-menu > li > a > i {
  display: inline-grid;
  width: 25px !important;
  min-width: 25px !important;
  height: 25px !important;
  flex: 0 0 25px;
  align-items: center;
  justify-content: center;
  margin: 0 9px 0 0 !important;
  padding: 0 !important;
  color: currentColor !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 18px !important;
}

body:not(.yc-login-shell) #sidebar-menu #side-menu > li > a > span {
  min-width: 0;
  overflow: hidden;
  padding-right: 14px;
  color: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not(.yc-login-shell) #sidebar-menu #side-menu > li > a:hover,
body:not(.yc-login-shell) #sidebar-menu #side-menu > li.mm-active > a,
body:not(.yc-login-shell) #sidebar-menu #side-menu > li > a.active {
  color: var(--idc-blue) !important;
  background: #edf4ff !important;
}

body:not(.yc-login-shell) #sidebar-menu #side-menu > li:first-child > a:not(.active) {
  color: #6f83a5 !important;
  background: transparent !important;
}

body:not(.yc-login-shell) #sidebar-menu #side-menu > li > a:hover > i,
body:not(.yc-login-shell) #sidebar-menu #side-menu > li.mm-active > a > i,
body:not(.yc-login-shell) #sidebar-menu #side-menu > li > a.active > i {
  color: var(--idc-blue) !important;
}

body:not(.yc-login-shell) #sidebar-menu #side-menu > li > a.has-arrow::after {
  right: 10px !important;
  color: #8294b1 !important;
  font-size: 14px !important;
}

body:not(.yc-login-shell) #sidebar-menu #side-menu > li.mm-active > a.has-arrow::after,
body:not(.yc-login-shell) #sidebar-menu #side-menu > li > a.active.has-arrow::after {
  color: var(--idc-blue) !important;
}

body:not(.yc-login-shell) #sidebar-menu ul li ul.sub-menu {
  margin: 4px 0 6px 20px !important;
  padding: 3px 0 3px 10px !important;
  border-left: 1px solid #e3ebf7 !important;
}

body:not(.yc-login-shell) #sidebar-menu ul li ul.sub-menu li {
  margin: 2px 0 !important;
}

body:not(.yc-login-shell) #sidebar-menu ul li ul.sub-menu li a {
  min-height: 34px;
  padding: 0 10px !important;
  color: #7385a3 !important;
  border-radius: 8px !important;
  background: transparent !important;
  font-size: 13px;
  font-weight: 600;
}

body:not(.yc-login-shell) #sidebar-menu ul li ul.sub-menu li a i {
  width: 21px;
  min-width: 21px;
  height: 21px;
  margin-right: 7px;
  border: 0 !important;
  border-radius: 6px;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 12px;
}

body:not(.yc-login-shell) #sidebar-menu ul li ul.sub-menu li a:hover,
body:not(.yc-login-shell) #sidebar-menu ul li ul.sub-menu li.mm-active > a,
body:not(.yc-login-shell) #sidebar-menu ul li ul.sub-menu li a.active {
  color: var(--idc-blue) !important;
  background: #edf4ff !important;
}

body:not(.yc-login-shell) #sidebar-menu ul li ul.sub-menu li a:hover i,
body:not(.yc-login-shell) #sidebar-menu ul li ul.sub-menu li.mm-active > a i,
body:not(.yc-login-shell) #sidebar-menu ul li ul.sub-menu li a.active i {
  color: var(--idc-blue) !important;
}

body:not(.yc-login-shell) .yc-sidebar-status {
  display: none !important;
}

body:not(.yc-login-shell) .main-content {
  margin-left: 200px !important;
  padding-top: 70px !important;
}

body:not(.yc-login-shell) .page-content {
  min-height: calc(100vh - 70px);
}

@media (max-width: 760px) {
  body:not(.yc-login-shell) .yc-mobile-menu-toggle {
    position: fixed;
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    z-index: 1210;
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .86);
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(145deg, #3975f6 0%, #596ff9 58%, #6f72ff 100%);
    box-shadow: 0 14px 30px rgba(57, 117, 246, .28), 0 3px 8px rgba(31, 49, 86, .1);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  }

  body:not(.yc-login-shell) .yc-mobile-menu-toggle::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 12px;
    pointer-events: none;
  }

  body:not(.yc-login-shell) .yc-mobile-menu-toggle:focus-visible {
    outline: 3px solid rgba(57, 117, 246, .26);
    outline-offset: 3px;
  }

  body:not(.yc-login-shell) .yc-mobile-menu-toggle:active {
    transform: translateY(1px) scale(.96);
    box-shadow: 0 8px 18px rgba(57, 117, 246, .24);
  }

  body:not(.yc-login-shell) .yc-mobile-menu-icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: 21px;
    height: 18px;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
  }

  body:not(.yc-login-shell) .yc-mobile-menu-icon i {
    display: block;
    width: 21px;
    height: 2px;
    flex: 0 0 2px;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center;
    transition: transform .2s ease, opacity .16s ease, width .2s ease;
  }

  body:not(.yc-login-shell) .yc-mobile-menu-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 17px 34px rgba(57, 117, 246, .36), 0 4px 10px rgba(31, 49, 86, .12);
  }

  body:not(.yc-login-shell).yc-mobile-sidebar-open {
    overflow: hidden;
  }

  body:not(.yc-login-shell) .yc-mobile-sidebar-backdrop {
    position: fixed;
    z-index: 1190;
    inset: 0;
    visibility: hidden;
    display: block;
    opacity: 0;
    background: rgba(16, 34, 66, .28);
    pointer-events: none;
    transition: opacity .24s ease, visibility .24s ease;
  }

  body:not(.yc-login-shell).yc-mobile-sidebar-open .yc-mobile-sidebar-backdrop {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  body:not(.yc-login-shell) .vertical-menu {
    top: 67px !important;
    bottom: 0;
    left: 0;
    z-index: 1200;
    display: block !important;
    width: min(286px, calc(100vw - 44px)) !important;
    visibility: hidden;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-105%);
    box-shadow: 12px 0 32px rgba(31, 49, 86, .14) !important;
    transition: transform .24s ease, opacity .2s ease, visibility .24s ease;
  }

  body:not(.yc-login-shell).yc-mobile-sidebar-open .vertical-menu {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
  }

  body:not(.yc-login-shell) .vertical-menu .yc-sidebar-scroll {
    width: 100%;
  }

  body:not(.yc-login-shell) .navbar-header {
    padding-left: 70px;
  }

  body:not(.yc-login-shell) .navbar-brand-box {
    width: 70px !important;
  }

  body:not(.yc-login-shell) .yc-sidebar-brand span,
  body:not(.yc-login-shell) .yc-header-search {
    display: none;
  }

  body:not(.yc-login-shell) .yc-sidebar-brand {
    justify-content: center;
  }

  body:not(.yc-login-shell) .vertical-menu {
    width: min(286px, calc(100vw - 44px)) !important;
  }

  body:not(.yc-login-shell) #sidebar-menu {
    padding-right: 10px !important;
    padding-left: 10px !important;
  }

  body:not(.yc-login-shell) #sidebar-menu #side-menu > li > a {
    justify-content: flex-start;
    width: 100%;
    padding: 0 12px !important;
  }

  body:not(.yc-login-shell) #sidebar-menu #side-menu > li > a > i {
    margin-right: 9px !important;
  }

  body:not(.yc-login-shell) #sidebar-menu #side-menu > li > a > span {
    display: block !important;
  }

  body:not(.yc-login-shell) #sidebar-menu #side-menu > li > a.has-arrow::after {
    display: block !important;
  }

  body:not(.yc-login-shell) #sidebar-menu ul.sub-menu {
    display: none !important;
  }

  body:not(.yc-login-shell) #sidebar-menu ul.sub-menu.mm-show {
    display: block !important;
  }

  body:not(.yc-login-shell) .main-content {
    margin-left: 0 !important;
  }

  body:not(.yc-login-shell).yc-mobile-sidebar-open .yc-mobile-menu-toggle {
    color: var(--idc-blue);
    background: #fff;
    border-color: rgba(57, 117, 246, .14);
    box-shadow: 0 12px 26px rgba(31, 49, 86, .18), 0 2px 6px rgba(31, 49, 86, .08);
  }

  body:not(.yc-login-shell).yc-mobile-sidebar-open .yc-mobile-menu-icon i:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  body:not(.yc-login-shell).yc-mobile-sidebar-open .yc-mobile-menu-icon i:nth-child(2) {
    width: 0;
    opacity: 0;
  }

  body:not(.yc-login-shell).yc-mobile-sidebar-open .yc-mobile-menu-icon i:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

@media (max-width: 480px) {
  body:not(.yc-login-shell) .navbar-header {
    padding-left: 58px;
    padding-right: 12px;
  }

  body:not(.yc-login-shell) .navbar-brand-box {
    width: 58px !important;
  }

  body:not(.yc-login-shell) .vertical-menu {
    width: min(286px, calc(100vw - 32px)) !important;
  }

  body:not(.yc-login-shell) .main-content {
    margin-left: 0 !important;
  }

  body:not(.yc-login-shell) .yc-mobile-menu-toggle {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    width: 50px;
    height: 50px;
    border-radius: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.yc-login-shell) .vertical-menu,
  body:not(.yc-login-shell) .yc-mobile-sidebar-backdrop,
  body:not(.yc-login-shell) .yc-mobile-menu-toggle,
  body:not(.yc-login-shell) .yc-mobile-menu-icon i {
    transition: none !important;
  }
}

/* Reference alignment: the supplied console capture uses a 67px shell baseline. */
body:not(.yc-login-shell) #page-topbar {
  height: 67px !important;
}

body:not(.yc-login-shell) .navbar-header {
  height: 67px !important;
}

body:not(.yc-login-shell) .navbar-brand-box {
  height: 67px !important;
}

body:not(.yc-login-shell) .yc-header-search {
  height: 34px !important;
}

body:not(.yc-login-shell) .vertical-menu {
  top: 67px !important;
}

body:not(.yc-login-shell) .main-content {
  padding-top: 67px !important;
}

body:not(.yc-login-shell) .page-content {
  min-height: calc(100vh - 67px) !important;
}

/* Keep the reference illustration visible without changing the card geometry. */
@media (max-width: 1200px) and (min-width: 761px) {
  body:not(.yc-login-shell) .idc-hero::after {
    right: -20px !important;
    opacity: .64 !important;
  }
}

/* Latest reference pass: remove the global search field and lower the hero card. */
body:not(.yc-login-shell) .yc-header-search {
  display: none !important;
}

body:not(.yc-login-shell) .idc-hero {
  margin-top: 16px;
  border-color: #dbe9f8;
  background: linear-gradient(116deg, #dfeeff 0%, #eef7ff 52%, #d8eaff 100%);
  box-shadow: 0 8px 24px rgba(55, 111, 184, .08);
}

body:not(.yc-login-shell) .idc-hero .idc-primary {
  background: linear-gradient(90deg, #2f75f4 0%, #3b83f7 100%);
}

@media (max-width: 760px) {
  body:not(.yc-login-shell) .idc-hero {
    margin-top: 12px;
  }
}

/* Keep the mobile dashboard focused on the hero and account actions. */
@media (max-width: 760px) {
  body:has(.idc-dashboard) .idc-section--hot-products,
  body:has(.idc-dashboard) .idc-section--recommended-plans,
  body:has(.idc-dashboard) .idc-section--global-regions {
    display: none !important;
  }
}

/* Keep the profile column aligned with the lowered hero card on wide screens. */
@media (min-width: 1201px) {
  body:not(.yc-login-shell) .idc-side {
    padding-top: 16px;
  }

  body:not(.yc-login-shell) .idc-account {
    box-shadow: 0 10px 28px rgba(55, 111, 184, .09);
  }
}

/* Reference sidebar: grouped console navigation with a light blue rhythm. */
body:not(.yc-login-shell) {
  --yc-ref-sidebar-width: 274px;
  --yc-ref-blue: #2478ee;
  --yc-ref-ink: #102f63;
  --yc-ref-muted: #6d7f9f;
  --yc-ref-line: #dbe6f4;
  --yc-ref-soft: #f4f8fe;
}

body:not(.yc-login-shell) .navbar-brand-box {
  width: var(--yc-ref-sidebar-width) !important;
  justify-content: flex-start;
  padding: 0 28px;
  border-right: 1px solid #e1eaf5 !important;
  background: linear-gradient(180deg, #fbfdff 0%, #f5f9ff 100%) !important;
}

body:not(.yc-login-shell) .yc-sidebar-brand {
  gap: 12px;
}

body:not(.yc-login-shell) .yc-sidebar-brand img {
  width: 43px;
  height: 43px;
  filter: drop-shadow(0 8px 16px rgba(36, 120, 238, .14));
}

body:not(.yc-login-shell) .yc-sidebar-brand b {
  color: var(--yc-ref-ink);
  font-size: 20px;
  font-weight: 850;
  background: none;
  -webkit-text-fill-color: currentColor;
}

body:not(.yc-login-shell) .yc-sidebar-brand em {
  margin-top: 5px;
  color: #7185a7;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .4px;
}

body:not(.yc-login-shell) .vertical-menu {
  width: var(--yc-ref-sidebar-width) !important;
  background: linear-gradient(180deg, #fbfdff 0%, #f7faff 48%, #f1f7ff 100%) !important;
  border-right: 1px solid #e1eaf5 !important;
  box-shadow: 8px 0 26px rgba(43, 83, 139, .035) !important;
}

body:not(.yc-login-shell) #sidebar-menu {
  padding: 16px 22px 24px !important;
}

body:not(.yc-login-shell) #sidebar-menu > ul > li {
  position: relative;
  margin: 0 0 10px !important;
  overflow: hidden;
  border: 1px solid var(--yc-ref-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 4px 13px rgba(50, 87, 135, .025);
}

body:not(.yc-login-shell) #sidebar-menu > ul > li:last-child {
  margin-bottom: 0 !important;
}

body:not(.yc-login-shell) #sidebar-menu #side-menu > li > a {
  width: 100%;
  min-height: 48px;
  padding: 0 20px !important;
  color: var(--yc-ref-ink) !important;
  border-radius: 13px !important;
  background: transparent !important;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: 0;
}

body:not(.yc-login-shell) #sidebar-menu #side-menu > li > a > i {
  display: none !important;
}

body:not(.yc-login-shell) #sidebar-menu #side-menu > li > a > span {
  padding-right: 24px;
}

body:not(.yc-login-shell) #sidebar-menu #side-menu > li > a.has-arrow::after {
  top: 50%;
  right: 21px !important;
  width: 10px;
  height: 10px;
  margin-top: -7px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  color: var(--yc-ref-ink) !important;
  font-size: 0 !important;
  transform: rotate(45deg);
  transition: transform .2s ease, color .2s ease;
}

body:not(.yc-login-shell) #sidebar-menu #side-menu > li.mm-active > a.has-arrow::after,
body:not(.yc-login-shell) #sidebar-menu #side-menu > li > a.active.has-arrow::after {
  color: var(--yc-ref-blue) !important;
  transform: rotate(225deg) translate(-1px, -1px);
}

body:not(.yc-login-shell) #sidebar-menu > ul > li:has(> ul.mm-show),
body:not(.yc-login-shell) #sidebar-menu > ul > li.mm-active:has(> ul) {
  border-color: #8fc1ff;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 0 0 1px rgba(143, 193, 255, .1), 0 8px 22px rgba(58, 119, 200, .045);
}

body:not(.yc-login-shell) #sidebar-menu #side-menu > li > a:hover,
body:not(.yc-login-shell) #sidebar-menu #side-menu > li > a.active {
  color: var(--yc-ref-blue) !important;
  background: rgba(232, 242, 255, .82) !important;
}

body:not(.yc-login-shell) #sidebar-menu #side-menu > li.mm-active > a {
  color: var(--yc-ref-ink) !important;
  background: transparent !important;
}

body:not(.yc-login-shell) #sidebar-menu #side-menu > li.mm-active > a:hover {
  color: var(--yc-ref-blue) !important;
  background: rgba(232, 242, 255, .6) !important;
}

body:not(.yc-login-shell) #sidebar-menu ul li ul.sub-menu {
  margin: 0 !important;
  padding: 0 14px 13px 14px !important;
  border-left: 0 !important;
}

body:not(.yc-login-shell) #sidebar-menu ul li ul.sub-menu li {
  margin: 1px 0 !important;
}

body:not(.yc-login-shell) #sidebar-menu ul li ul.sub-menu li a,
body:not(.yc-login-shell) #sidebar-menu ul li ul.sub-menu li ul.sub-menu li a {
  position: relative;
  min-height: 49px;
  padding: 0 12px 0 51px !important;
  color: #162a50 !important;
  border-radius: 13px !important;
  background: transparent !important;
  font-size: 17px;
  font-weight: 650;
}

body:not(.yc-login-shell) #sidebar-menu ul li ul.sub-menu li a::before {
  position: absolute;
  top: 50%;
  left: 20px;
  width: 11px;
  height: 11px;
  content: "";
  border-radius: 50%;
  background: #9aa8bb;
  transform: translateY(-50%);
}

body:not(.yc-login-shell) #sidebar-menu ul li ul.sub-menu li a i {
  display: none !important;
}

body:not(.yc-login-shell) #sidebar-menu ul li ul.sub-menu li a.has-arrow {
  padding-right: 34px !important;
}

body:not(.yc-login-shell) #sidebar-menu ul li ul.sub-menu li a.has-arrow::after {
  right: 15px;
  color: var(--yc-ref-muted);
}

body:not(.yc-login-shell) #sidebar-menu ul li ul.sub-menu li a:hover,
body:not(.yc-login-shell) #sidebar-menu ul li ul.sub-menu li.mm-active > a,
body:not(.yc-login-shell) #sidebar-menu ul li ul.sub-menu li a.active {
  color: var(--yc-ref-blue) !important;
  background: #e8f2ff !important;
}

body:not(.yc-login-shell) #sidebar-menu ul li ul.sub-menu li a:hover::before,
body:not(.yc-login-shell) #sidebar-menu ul li ul.sub-menu li.mm-active > a::before,
body:not(.yc-login-shell) #sidebar-menu ul li ul.sub-menu li a.active::before {
  background: var(--yc-ref-blue);
}

body:not(.yc-login-shell) #sidebar-menu ul li ul.sub-menu li ul.sub-menu {
  padding: 0 0 0 14px !important;
}

body:not(.yc-login-shell) #sidebar-menu ul li ul.sub-menu li ul.sub-menu li a {
  min-height: 40px;
  padding-left: 37px !important;
  font-size: 14px;
}

body:not(.yc-login-shell) #sidebar-menu ul li ul.sub-menu li ul.sub-menu li a::before {
  left: 13px;
  width: 8px;
  height: 8px;
}

body:not(.yc-login-shell) #sidebar-menu .mm-active > a,
body:not(.yc-login-shell) #sidebar-menu ul li a.active {
  box-shadow: none !important;
}

body:not(.yc-login-shell) .yc-sidebar-help {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  z-index: 3;
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 12px;
  padding: 0 10px;
  color: #667b9e;
  border-top: 1px solid #d7e2f0;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none !important;
  background: linear-gradient(180deg, rgba(246, 250, 255, .82), rgba(246, 250, 255, .98));
}

body:not(.yc-login-shell) .yc-sidebar-help > i:first-child {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  color: currentColor;
  font-size: 25px;
}

body:not(.yc-login-shell) .yc-sidebar-help span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not(.yc-login-shell) .yc-sidebar-help-arrow {
  margin-left: auto;
  color: #6f83a5;
  font-size: 25px;
}

body:not(.yc-login-shell) .yc-sidebar-help:hover {
  color: var(--yc-ref-blue);
}

body:not(.yc-login-shell) .yc-sidebar-help:hover .yc-sidebar-help-arrow {
  color: var(--yc-ref-blue);
}

body:not(.yc-login-shell) .main-content {
  margin-left: var(--yc-ref-sidebar-width) !important;
}

@media (max-width: 1200px) and (min-width: 761px) {
  body:not(.yc-login-shell) {
    --yc-ref-sidebar-width: 248px;
  }

  body:not(.yc-login-shell) .navbar-brand-box {
    padding: 0 20px;
  }

  body:not(.yc-login-shell) #sidebar-menu {
    padding: 14px 16px 20px !important;
  }

  body:not(.yc-login-shell) #sidebar-menu #side-menu > li > a {
    min-height: 46px;
    font-size: 15px;
  }

  body:not(.yc-login-shell) #sidebar-menu ul li ul.sub-menu li a {
    font-size: 15px;
  }
}

@media (max-width: 760px) {
  body:not(.yc-login-shell) {
    --yc-ref-sidebar-width: min(286px, calc(100vw - 44px));
  }

  body:not(.yc-login-shell) .navbar-brand-box {
    width: 70px !important;
    padding: 0;
  }

  body:not(.yc-login-shell) .vertical-menu {
    width: var(--yc-ref-sidebar-width) !important;
  }

  body:not(.yc-login-shell) #sidebar-menu {
    padding: 16px 14px 24px !important;
  }

  body:not(.yc-login-shell) .yc-sidebar-help {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }

  body:not(.yc-login-shell) #sidebar-menu #side-menu > li > a {
    min-height: 48px;
    font-size: 16px;
  }

  body:not(.yc-login-shell) #sidebar-menu ul li ul.sub-menu li a {
    min-height: 46px;
    font-size: 16px;
  }
}

/* The compact desktop shell must not reserve sidebar space on mobile. */
@media (max-width: 760px) {
  body:not(.yc-login-shell) .main-content {
    width: auto !important;
    margin-left: 0 !important;
  }
}

/* Mobile shell reset: remove every desktop width constraint from the page stack. */
@media screen and (max-width: 760px) {
  html,
  body {
    width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }

  body:not(.yc-login-shell) #page-topbar,
  body:not(.yc-login-shell) .navbar-header,
  body:not(.yc-login-shell) .main-content,
  body:not(.yc-login-shell) .page-content,
  body:not(.yc-login-shell) .page-content > .container-fluid,
  body:not(.yc-login-shell) .idc-dashboard {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }

  body:not(.yc-login-shell) #page-topbar {
    left: 0 !important;
    right: 0 !important;
  }

  body:not(.yc-login-shell) .navbar-header {
    padding-left: 58px !important;
    padding-right: 12px !important;
  }

  body:not(.yc-login-shell) .main-content {
    position: relative !important;
    right: auto !important;
    left: 0 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-top: 67px !important;
  }

  body:not(.yc-login-shell) .page-content {
    overflow: visible !important;
  }

  body:not(.yc-login-shell) .page-content > .container-fluid {
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 12px !important;
    padding-left: 12px !important;
  }

  body:not(.yc-login-shell) .idc-dashboard .idc-grid {
    display: block !important;
    width: 100% !important;
  }

  body:not(.yc-login-shell) .idc-dashboard .idc-main,
  body:not(.yc-login-shell) .idc-dashboard .idc-side {
    display: flex !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
  }

  body:not(.yc-login-shell) .idc-dashboard .idc-main {
    flex-direction: column !important;
  }

  body:not(.yc-login-shell) .idc-dashboard .idc-side {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
  }

  body:not(.yc-login-shell) .idc-dashboard .idc-main > *,
  body:not(.yc-login-shell) .idc-dashboard .idc-side > * {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
  }

  body:not(.yc-login-shell) .idc-dashboard .idc-hero {
    width: 100% !important;
    max-width: none !important;
  }

  body:not(.yc-login-shell) .idc-dashboard .idc-account,
  body:not(.yc-login-shell) .idc-dashboard .idc-side-card,
  body:not(.yc-login-shell) .idc-dashboard .idc-notices,
  body:not(.yc-login-shell) .idc-dashboard .idc-promo {
    align-self: stretch !important;
  }
}

/* Affiliate plan reference refresh. */
body:has(.yc-affiliate-page) {
  background: radial-gradient(circle at 55% 5%, rgba(78, 169, 255, .13), transparent 28%), #f4f9ff;
  color: #0e2b5e;
}

body:has(.yc-affiliate-page) .page-content > .container-fluid {
  max-width: 1390px;
}

body:has(.yc-affiliate-page) .page-title-box {
  margin: 0;
  padding: 28px 4px 12px;
}

body:has(.yc-affiliate-page) .page-title-box h4,
body:has(.yc-affiliate-page) .page-title-box .page-title {
  color: #0b2d66;
  font-size: 30px;
  font-weight: 850;
  letter-spacing: 0;
}

body:has(.yc-affiliate-page) .page-title-box .breadcrumb,
body:has(.yc-affiliate-page) .page-title-box p {
  color: #64789e;
  font-size: 14px;
}

.yc-affiliate-page {
  --aff-blue: #1f73f3;
  --aff-blue-2: #32b7f5;
  --aff-ink: #0d2b5f;
  --aff-muted: #7385a7;
  --aff-line: #dce8f6;
  --aff-soft: #edf6ff;
  padding-bottom: 34px;
}

.yc-affiliate-page * {
  letter-spacing: 0;
}

.yc-affiliate-page button,
.yc-affiliate-page a {
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}

.yc-affiliate-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, .82fr);
  gap: 20px;
  align-items: stretch;
}

.yc-affiliate-invite,
.yc-affiliate-income,
.yc-affiliate-stat,
.yc-affiliate-records,
.yc-affiliate-rule-card {
  border: 1px solid rgba(209, 226, 247, .92);
  border-radius: 12px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 14px 34px rgba(39, 93, 164, .07);
}

.yc-affiliate-invite {
  position: relative;
  min-height: 218px;
  overflow: hidden;
  padding: 26px 340px 24px 30px;
  color: #fff;
  background:
    radial-gradient(circle at 74% 24%, rgba(255,255,255,.3) 0 18px, transparent 19px),
    radial-gradient(circle at 84% 42%, rgba(255,255,255,.18) 0 14px, transparent 15px),
    radial-gradient(circle at 78% 104%, rgba(45,105,244,.64) 0 118px, transparent 119px),
    linear-gradient(135deg, #28bdf0 0%, #2385f4 58%, #35c4ef 100%);
}

.yc-affiliate-invite::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(26, 135, 241, .06), rgba(255,255,255,.08));
  pointer-events: none;
}

.yc-affiliate-copy {
  position: relative;
  z-index: 2;
}

.yc-affiliate-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  color: #eaf6ff;
  background: rgba(255,255,255,.16);
  font-size: 12px;
  font-weight: 700;
}

.yc-affiliate-copy h2 {
  margin: 14px 0 8px;
  color: #fff;
  font-size: 28px;
  font-weight: 850;
  line-height: 1.25;
}

.yc-affiliate-copy p {
  max-width: 590px;
  margin: 0;
  color: rgba(255,255,255,.92);
  font-size: 15px;
  font-weight: 600;
}

.yc-affiliate-linkbar {
  display: flex;
  width: min(100%, 520px);
  height: 48px;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 0 6px 0 17px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 12px 28px rgba(20, 91, 197, .14);
}

.yc-affiliate-linkbar > i {
  color: #2575ef;
  font-size: 22px;
}

.yc-affiliate-linkbar input {
  min-width: 0;
  flex: 1 1 auto;
  border: 0;
  outline: 0;
  color: #15346b;
  background: transparent;
  font-size: 15px;
  font-weight: 750;
}

.yc-affiliate-linkbar button {
  display: inline-flex;
  height: 38px;
  align-items: center;
  gap: 9px;
  padding: 0 22px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(90deg, #2775ef, #3485f6);
  box-shadow: 0 8px 18px rgba(34, 103, 231, .28);
  font-size: 13px;
  font-weight: 800;
}

.yc-affiliate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
}

.yc-affiliate-soft-btn {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.54);
  border-radius: 8px;
  color: #176cef;
  background: rgba(255,255,255,.9);
  box-shadow: 0 8px 18px rgba(20, 91, 197, .11);
  font-size: 13px;
  font-weight: 800;
}

.yc-affiliate-soft-btn:hover {
  color: #0d56d4;
  transform: translateY(-1px);
}

.yc-affiliate-gift {
  position: absolute;
  right: 48px;
  bottom: 16px;
  z-index: 1;
  width: 210px;
  height: 176px;
  border-radius: 56px 56px 30px 30px;
  background: linear-gradient(145deg, rgba(255,255,255,.54), rgba(172, 221, 255, .26));
  transform: rotate(-9deg);
}

.yc-affiliate-gift::before,
.yc-affiliate-gift::after {
  content: '';
  position: absolute;
  border: 9px solid rgba(221, 242, 255, .92);
  border-radius: 999px;
}

.yc-affiliate-gift::before {
  top: -22px;
  left: 56px;
  width: 72px;
  height: 50px;
  transform: rotate(34deg);
}

.yc-affiliate-gift::after {
  top: -21px;
  right: 37px;
  width: 58px;
  height: 70px;
  transform: rotate(-34deg);
}

.yc-affiliate-gift-card {
  position: absolute;
  inset: 18px 18px 20px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(150deg, #eaf8ff 0%, #8fd5ff 38%, #3b93f6 100%);
  box-shadow: inset 0 1px 10px rgba(255,255,255,.72), 0 18px 32px rgba(22, 93, 204, .22);
}

.yc-affiliate-gift-card::before,
.yc-affiliate-gift-card::after {
  content: '';
  position: absolute;
  background: rgba(255,255,255,.76);
}

.yc-affiliate-gift-card::before {
  top: 0;
  bottom: 0;
  left: calc(50% - 6px);
  width: 12px;
}

.yc-affiliate-gift-card::after {
  top: 47%;
  left: 0;
  right: 0;
  height: 12px;
}

.yc-affiliate-gift-card i {
  position: relative;
  z-index: 1;
  font-size: 70px;
  text-shadow: 0 8px 18px rgba(36, 100, 193, .24);
}

.yc-affiliate-income {
  position: relative;
  min-height: 218px;
  padding: 24px 26px 18px;
}

.yc-affiliate-income-head,
.yc-affiliate-income-meta,
.yc-affiliate-record-head,
.yc-affiliate-rule-title {
  display: flex;
  align-items: center;
}

.yc-affiliate-income-head {
  justify-content: space-between;
  gap: 14px;
}

.yc-affiliate-income-head strong {
  color: var(--aff-ink);
  font-size: 17px;
  font-weight: 850;
}

.yc-affiliate-income-head span {
  color: #667da4;
  font-size: 12px;
  white-space: nowrap;
}

.yc-affiliate-balance {
  margin-top: 22px;
  color: #1d68ea;
  font-size: 45px;
  font-weight: 900;
  line-height: 1;
}

.yc-affiliate-balance small {
  margin-right: 12px;
  color: #0d2b5f;
  font-size: 30px;
  font-weight: 900;
}

.yc-affiliate-income > p {
  margin: 10px 0 14px;
  color: #637696;
  font-size: 13px;
  font-weight: 700;
}

.yc-affiliate-income-meta {
  gap: 0;
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--aff-line);
}

.yc-affiliate-income-meta div {
  flex: 1 1 0;
  min-width: 0;
  padding-right: 18px;
}

.yc-affiliate-income-meta div + div {
  padding-left: 24px;
  border-left: 1px solid var(--aff-line);
}

.yc-affiliate-income-meta span,
.yc-affiliate-income-foot {
  display: block;
  color: #6c7e9e;
  font-size: 12px;
}

.yc-affiliate-income-meta strong {
  display: block;
  margin-top: 8px;
  color: #0d2b5f;
  font-size: 19px;
  font-weight: 850;
}

.yc-affiliate-withdraw {
  position: absolute;
  right: 26px;
  bottom: 43px;
  display: inline-flex;
  height: 44px;
  align-items: center;
  gap: 9px;
  padding: 0 27px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(90deg, #2472f1, #277ff6);
  box-shadow: 0 12px 22px rgba(36, 114, 241, .24);
  font-size: 14px;
  font-weight: 850;
}

.yc-affiliate-withdraw:disabled {
  cursor: not-allowed;
  opacity: .55;
  box-shadow: none;
}

.yc-affiliate-income-foot {
  margin-top: 11px;
}

.yc-affiliate-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.yc-affiliate-stat {
  position: relative;
  display: grid;
  min-height: 94px;
  grid-template-columns: 64px minmax(0, 1fr) 76px;
  align-items: center;
  gap: 14px;
  padding: 17px 17px 17px 19px;
  overflow: hidden;
}

.yc-affiliate-stat-icon {
  display: grid;
  width: 55px;
  height: 55px;
  place-items: center;
  border-radius: 10px;
  color: #1f73f3;
  background: linear-gradient(145deg, #edf5ff, #deecff);
  font-size: 31px;
}

.yc-affiliate-stat p {
  margin: 0 0 5px;
  color: #53688d;
  font-size: 13px;
  font-weight: 750;
}

.yc-affiliate-stat strong {
  color: #0d2b5f;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.yc-affiliate-stat small {
  margin-left: 10px;
  color: #8da0bf;
  font-size: 11px;
  font-weight: 700;
}

.yc-affiliate-stat:first-child small {
  color: #02b988;
}

.yc-affiliate-spark {
  width: 70px;
  height: 32px;
  background:
    linear-gradient(135deg, transparent 9%, rgba(43, 126, 245, .32) 10% 13%, transparent 14% 33%, rgba(43, 126, 245, .45) 34% 37%, transparent 38% 53%, rgba(43, 126, 245, .36) 54% 58%, transparent 59%),
    linear-gradient(135deg, transparent 0 61%, #78b5ff 62% 66%, transparent 67%);
  opacity: .88;
}

.yc-affiliate-records {
  margin-top: 20px;
  overflow: hidden;
}

.yc-affiliate-record-head {
  min-height: 76px;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px 0 20px;
  border-bottom: 1px solid #eef3fa;
}

.yc-affiliate-records .affs-nav {
  gap: 54px;
  border-bottom: 0;
}

.yc-affiliate-records .affs-nav .nav-link {
  position: relative;
  min-height: 76px;
  padding: 0;
  color: #52698d;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  font-weight: 850;
}

.yc-affiliate-records .affs-nav .nav-link::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
}

.yc-affiliate-records .affs-nav .nav-link.active {
  color: #176cef;
}

.yc-affiliate-records .affs-nav .nav-link.active::after {
  background: #176cef;
}

.yc-affiliate-record-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.yc-affiliate-record-actions button {
  display: inline-flex;
  height: 36px;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid #d5e3f5;
  border-radius: 8px;
  color: #60769a;
  background: #fff;
  font-size: 13px;
  font-weight: 750;
}

.yc-affiliate-record-actions .yc-affiliate-export {
  color: #176cef;
  border-color: #bfd6ff;
  background: #f8fbff;
}

.yc-affiliate-records .tab-content {
  padding: 0 18px 18px;
}

.yc-affiliate-records .table-container {
  margin: 0;
}

.yc-affiliate-records .table-header {
  padding: 14px 0 14px;
}

.yc-affiliate-records .table-filter {
  display: none;
}

.yc-affiliate-records .table-search .row {
  margin: 0;
  justify-content: flex-end !important;
}

.yc-affiliate-records .table-search .col-sm-6 {
  width: min(100%, 280px);
  max-width: 280px;
  flex: 0 0 280px;
  padding: 0;
}

.yc-affiliate-records .search-box .form-control {
  height: 36px;
  padding-left: 39px;
  border: 1px solid #d8e4f4;
  border-radius: 8px;
  color: #0d2b5f;
  background: #fff;
  box-shadow: none;
}

.yc-affiliate-records .search-box .search-icon {
  top: 50%;
  left: 13px;
  color: #5f769b;
  transform: translateY(-50%);
}

.yc-affiliate-records .table-responsive {
  overflow-x: auto;
  border: 1px solid #e4edf8;
  border-radius: 8px;
}

.yc-affiliate-records .table {
  min-width: 760px;
  margin: 0;
  color: #31486e;
}

.yc-affiliate-records .table thead.bg-light {
  background: linear-gradient(180deg, #f3f8ff, #edf4fb) !important;
}

.yc-affiliate-records .table th {
  height: 42px;
  padding: 10px 18px;
  border: 0;
  color: #405a80;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.yc-affiliate-records .table td {
  height: 50px;
  padding: 12px 18px;
  border-top: 1px solid #edf3fa;
  color: #53688d;
  font-size: 13px;
  vertical-align: middle;
}

.yc-affiliate-records .table-footer {
  display: flex;
  justify-content: flex-end;
  padding: 13px 0 0;
  color: #667da4;
}

.yc-affiliate-records .table-pagination {
  display: flex;
  align-items: center;
  gap: 12px;
}

.yc-affiliate-records .table-pageinfo {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 !important;
  font-size: 12px;
}

.yc-affiliate-records .table-pageinfo select {
  height: 28px;
  padding: 0 7px;
  border: 1px solid #d5e3f5;
  border-radius: 6px;
  color: #0d2b5f;
  background: #fff;
}

.yc-affiliate-records .pagination {
  margin: 0;
}

.yc-affiliate-records .page-link {
  min-width: 30px;
  height: 30px;
  padding: 0 9px;
  border-color: #d9e6f5;
  color: #4570aa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.yc-affiliate-records .page-item.active .page-link,
.yc-affiliate-records .pagination .active .page-link {
  border-color: #176cef;
  background: #176cef;
}

.yc-affiliate-empty td {
  height: 170px !important;
  padding: 0 !important;
  background: #fff;
}

.yc-affiliate-empty div {
  display: grid;
  min-height: 170px;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
}

.yc-affiliate-empty i.bx {
  color: #69a8ff;
  font-size: 42px;
}

.yc-affiliate-empty strong {
  color: #2f4770;
  font-size: 15px;
}

.yc-affiliate-empty span {
  color: #8192ae;
  font-size: 13px;
}

.yc-affiliate-empty-copy {
  display: inline-flex;
  height: 34px;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  padding: 0 18px;
  border: 1px solid #bdd5ff;
  border-radius: 8px;
  color: #176cef;
  background: #f8fbff;
  font-size: 13px;
  font-weight: 800;
}

.yc-affiliate-rule-card {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 10px;
  margin-top: 16px;
  padding: 17px 20px;
}

.yc-affiliate-rule-title {
  gap: 10px;
  color: #0d2b5f;
  font-size: 14px;
  font-weight: 850;
}

.yc-affiliate-rule-title i {
  color: #176cef;
  font-size: 22px;
}

.yc-affiliate-rule-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.yc-affiliate-rule-steps div {
  display: grid;
  grid-template-columns: 34px auto;
  column-gap: 12px;
  align-items: center;
}

.yc-affiliate-rule-steps span {
  grid-row: span 2;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #74b6ff, #2b7df4);
  font-size: 13px;
  font-weight: 850;
}

.yc-affiliate-rule-steps strong {
  color: #17376b;
  font-size: 13px;
}

.yc-affiliate-rule-steps small {
  margin-top: 3px;
  color: #8697b3;
  font-size: 12px;
}

.yc-affiliate-rule-steps > i {
  color: #8aa4c9;
  font-size: 20px;
}

.yc-affiliate-rule-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.yc-affiliate-rule-list div {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #e2ebf6;
  border-radius: 8px;
  background: #fbfdff;
}

.yc-affiliate-rule-list strong,
.yc-affiliate-rule-list span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yc-affiliate-rule-list strong {
  color: #17376b;
  font-size: 13px;
}

.yc-affiliate-rule-list span {
  margin-top: 5px;
  color: #7b8daa;
  font-size: 12px;
}

.yc-affiliate-rule-list em {
  display: inline-flex;
  margin-top: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #08a773;
  background: #e9fbf5;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

@media (max-width: 1320px) {
  .yc-affiliate-hero-grid {
    grid-template-columns: 1fr;
  }

  .yc-affiliate-income {
    min-height: 190px;
  }

  .yc-affiliate-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body:has(.yc-affiliate-page) .page-title-box {
    padding-top: 18px;
  }

  body:has(.yc-affiliate-page) .page-title-box h4,
  body:has(.yc-affiliate-page) .page-title-box .page-title {
    font-size: 25px;
  }

  .yc-affiliate-invite {
    padding-right: 26px;
  }

  .yc-affiliate-gift {
    right: -36px;
    bottom: -20px;
    opacity: .22;
  }

  .yc-affiliate-record-head {
    height: auto;
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 14px 0;
  }

  .yc-affiliate-records .affs-nav {
    justify-content: space-between;
    gap: 0;
  }

  .yc-affiliate-records .affs-nav .nav-link {
    min-height: 48px;
    font-size: 14px;
  }

  .yc-affiliate-record-actions {
    padding-bottom: 14px;
  }

  .yc-affiliate-record-actions button {
    flex: 1 1 0;
    justify-content: center;
  }

  .yc-affiliate-records .tab-content {
    padding: 0 12px 14px;
  }

  .yc-affiliate-records .table-search .col-sm-6 {
    width: 100%;
    max-width: none;
    flex-basis: 100%;
  }

  .yc-affiliate-rule-card {
    grid-template-columns: 1fr;
  }

  .yc-affiliate-rule-steps {
    align-items: stretch;
    flex-direction: column;
  }

  .yc-affiliate-rule-steps > i {
    display: none;
  }

  .yc-affiliate-rule-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .yc-affiliate-page {
    padding-bottom: 22px;
  }

  .yc-affiliate-hero-grid,
  .yc-affiliate-stats {
    gap: 12px;
  }

  .yc-affiliate-invite,
  .yc-affiliate-income,
  .yc-affiliate-stat,
  .yc-affiliate-records,
  .yc-affiliate-rule-card {
    border-radius: 10px;
  }

  .yc-affiliate-invite {
    min-height: 0;
    padding: 20px 16px 18px;
  }

  .yc-affiliate-copy h2 {
    font-size: 23px;
  }

  .yc-affiliate-copy p {
    font-size: 13px;
  }

  .yc-affiliate-linkbar {
    height: auto;
    min-height: 46px;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
  }

  .yc-affiliate-linkbar > i {
    display: none;
  }

  .yc-affiliate-linkbar input {
    flex-basis: 100%;
    padding: 0 8px;
    font-size: 13px;
  }

  .yc-affiliate-linkbar button {
    width: 100%;
    justify-content: center;
  }

  .yc-affiliate-actions {
    gap: 10px;
  }

  .yc-affiliate-soft-btn {
    flex: 1 1 0;
    justify-content: center;
    padding: 0 12px;
  }

  .yc-affiliate-income {
    min-height: 0;
    padding: 20px 16px;
  }

  .yc-affiliate-income-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .yc-affiliate-balance {
    margin-top: 16px;
    font-size: 39px;
  }

  .yc-affiliate-income-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .yc-affiliate-income-meta div {
    padding-right: 10px;
  }

  .yc-affiliate-income-meta div + div {
    padding-left: 14px;
  }

  .yc-affiliate-withdraw {
    position: static;
    width: 100%;
    justify-content: center;
    margin-top: 16px;
  }

  .yc-affiliate-stats {
    grid-template-columns: 1fr;
    margin-top: 12px;
  }

  .yc-affiliate-stat {
    min-height: 82px;
    grid-template-columns: 52px minmax(0, 1fr) 58px;
    gap: 12px;
    padding: 13px 14px;
  }

  .yc-affiliate-stat-icon {
    width: 48px;
    height: 48px;
    font-size: 26px;
  }

  .yc-affiliate-stat strong {
    font-size: 23px;
  }

  .yc-affiliate-spark {
    width: 54px;
  }

  .yc-affiliate-records {
    margin-top: 12px;
  }

  .yc-affiliate-records .affs-nav .nav-link {
    font-size: 13px;
  }

  .yc-affiliate-record-actions {
    flex-direction: column;
  }

  .yc-affiliate-record-actions button {
    width: 100%;
  }

  .yc-affiliate-records .table {
    min-width: 700px;
  }

  .yc-affiliate-records .table-footer,
  .yc-affiliate-records .table-pagination,
  .yc-affiliate-records .table-pageinfo {
    align-items: flex-start;
    flex-direction: column;
  }

  .yc-affiliate-empty td,
  .yc-affiliate-empty div {
    min-height: 150px;
  }
}

/* Affiliate spacing polish after live verification. */
body:has(.yc-affiliate-page) .page-content {
  padding: 0 !important;
}

body:has(.yc-affiliate-page) .page-content > .container-fluid {
  padding-top: 0 !important;
}

body:has(.yc-affiliate-page) .page-title-box h4::after,
body:has(.yc-affiliate-page) .page-title-box .page-title::after {
  content: '分享雾起数据，邀请好友上云，订单完成后获得佣金奖励。';
  display: block;
  margin-top: 8px;
  color: #667da4;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

@media (max-width: 640px) {
  body:has(.yc-affiliate-page) .page-title-box {
    padding: 18px 0 10px;
  }

  body:has(.yc-affiliate-page) .page-title-box h4::after,
  body:has(.yc-affiliate-page) .page-title-box .page-title::after {
    max-width: 220px;
    font-size: 12px;
  }

  .yc-affiliate-empty div {
    position: sticky;
    left: 0;
    width: calc(100vw - 48px);
  }
}
