/* Client area theme styles */
:root {
  --bg-page: #F7F8F6;
  --bg-base: #F7F8F6;
  --bg-surface: #FFFFFF;
  --surface: #FFFFFF;
  --brand: #1E4631;
  --brand-light: #EAF1EC;
  --brand-primary: #1E4631;
  --brand-primary-50: #EAF1EC;
  --accent-peach: #EB6B78;
  --accent-peach-50: #FFF2F3;
  --accent-mint: #3B6E52;
  --accent-mint-50: #EAF1EC;
  --accent-blue: #457B96;
  --accent-blue-50: #EFF6FA;
  --text-title: #181D1A;
  --text-body: #52688F;
  --text-main: #181D1A;
  --text-sub: #76827B;
  --text-dark: #181D1A;
  --text-muted: #76827B;
  --border-light: #EAECE9;
  --border-hover: rgba(30, 70, 49, 0.15);
  --shadow-soft: inset 0 1px 0 0 rgba(255, 255, 255, 0.9), 0 2px 12px -4px rgba(24, 29, 26, 0.025), 0 1px 2px -1px rgba(24, 29, 26, 0.015);
  --shadow-md: inset 0 1px 0 0 rgba(255, 255, 255, 1), 0 14px 30px -10px rgba(30, 70, 49, 0.065), 0 3px 8px -2px rgba(24, 29, 26, 0.02);
  --radius-xl: 16px;
  --radius-2xl: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --bezier-smooth: cubic-bezier(0.22, 1, 0.36, 1);

  --isle-green: #1E4631;
  --isle-green-soft: #3B6E52;
  --isle-sage: #EAF1EC;
  --isle-coral: #EB6B78;
  --isle-coral-light: #FFF2F3;
  --isle-slate: #52688F;
  --isle-slate-light: #F1F4F9;
  --isle-sky: #457B96;
  --isle-sky-light: #EFF6FA;
  --isle-amber: #B57C43;
  --isle-amber-light: #FBF5EE;
  --isle-ink: #181D1A;
  --isle-muted: #76827B;
  --isle-line: #EAECE9;

  --accent-indigo: #52688F;
  --bg-indigo: #F1F4F9;
  --xc-primary: #1E4631;
  --xc-primary-dark: #163526;
  --xc-primary-soft: #EAF1EC;
  --xc-text: #181D1A;
  --xc-text-muted: #76827B;
  --xc-border: #EAECE9;
}

@keyframes xcFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes xcFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* 页面切换只用淡入，不做平移，避免割裂感 */
@keyframes xcSlideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes xcSlideRight {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes xcSoftPop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes xcDropIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ========== Auth pages (legacy register/pwreset) ========== */
body.xc-auth {
  margin: 0;
  background: #fff;
  font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Microsoft YaHei", sans-serif;
  color: var(--xc-text);
}
.xc-auth-wrap { display: flex; min-height: 100vh; width: 100%; }
.xc-auth-visual {
  flex: 1 1 62%;
  min-height: 100vh;
  background: #1a1440 url("/themes/clientarea/xingchen/assets/img/login-bg.jpg") center center / cover no-repeat;
}
.xc-auth-panel {
  flex: 0 0 38%;
  max-width: 480px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 48px;
  background: #fff;
  min-height: 100vh;
}
.xc-auth-inner { width: 100%; max-width: 340px; }
.xc-auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 320px;
  height: auto;
  margin: 0 auto 28px;
}
.xc-auth-logo img.is-wide {
  width: auto !important; height: 48px !important; max-width: 240px !important; object-fit: contain; display: block;
}
.xc-auth-logo img.is-mark {
  width: 56px !important; height: 56px !important; border-radius: 14px; object-fit: contain; display: block;
}
.xc-auth-title { font-size: 26px; font-weight: 700; color: var(--xc-text); text-align: center; margin: 0 0 8px; }
.xc-auth-sub { font-size: 14px; color: var(--xc-text-muted); text-align: center; margin: 0 0 32px; }
.xc-field { margin-bottom: 18px; }
.xc-field label { display: block; font-size: 13px; color: var(--xc-text); margin-bottom: 8px; font-weight: 500; }
.xc-field-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.xc-field-head label { margin-bottom: 0; }
.xc-link { color: var(--xc-primary) !important; font-size: 13px; text-decoration: none !important; }
.xc-input, .xc-auth .form-control {
  height: 44px !important; border: 1px solid var(--xc-border) !important; border-radius: 10px !important;
  font-size: 14px; color: var(--xc-text); box-shadow: none !important;
}
.xc-input:focus, .xc-auth .form-control:focus { border-color: var(--xc-primary) !important; }
.xc-pwd-wrap { position: relative; }
.xc-pwd-wrap .form-control { padding-right: 42px; }
.xc-pwd-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  border: none; background: none; color: var(--xc-text-muted); cursor: pointer; padding: 0; font-size: 18px;
}
.xc-check {
  display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--xc-text);
  margin: 8px 0 20px; cursor: pointer; user-select: none;
}
.xc-check input { width: 16px; height: 16px; accent-color: var(--xc-primary); }
.xc-btn-primary, .xc-auth .btn-primary {
  display: flex !important; align-items: center; justify-content: center; width: 100%;
  height: 46px !important; background: var(--xc-primary) !important; border: none !important;
  border-radius: 100px !important; color: #fff !important; font-size: 15px !important; font-weight: 600;
}
.xc-btn-primary:hover, .xc-auth .btn-primary:hover { background: var(--xc-primary-dark) !important; }
.xc-auth-footer { text-align: center; margin-top: 28px; font-size: 14px; color: var(--xc-text-muted); }
.xc-auth-footer a { color: var(--xc-primary); font-weight: 500; text-decoration: none; }
.xc-oauth { margin-top: 24px; text-align: center; }
.xc-oauth h5 { font-size: 13px; color: var(--xc-text-muted); margin-bottom: 12px; }
@media (max-width: 991.98px) {
  .xc-auth-visual { display: none; }
  .xc-auth-panel { flex: 1 1 100%; max-width: none; }
}

/* ========== Login page (Claude-style: form left, photo right) ========== */
body.tf-login {
  --tf-fg: #0E1216;
  --tf-muted: #667085;
  --tf-border: #E6E8EC;
  --tf-muted-bg: #F4F5F7;
  --tf-primary: #ED6D8F;
  --tf-primary-soft: #E8F0FE;
  background: #fff !important;
  min-height: 100vh;
}
body.tf-login.xc-auth #page-topbar,
body.tf-login.xc-auth .navbar-header,
body.tf-login.xc-auth .vertical-menu,
body.tf-login.xc-auth .footer,
body.tf-login.xc-auth .main-content,
body.tf-login.xc-auth .page-content {
  display: none !important;
}
.tf-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(0, 1.05fr);
  min-height: 100vh;
  background: #fff;
}
.tf-vsplit { display: none !important; }
.tf-left {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  background: #fff;
}
.tf-top {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 88px;
  margin: 0;
  padding: 8px 48px 0;
  overflow: visible;
}
body.tf-login .tf-top .dropdown {
  position: relative;
  z-index: 41;
}
body.tf-login .tf-top .dropdown-menu {
  z-index: 50 !important;
}
.tf-brand {
  display: flex;
  align-items: center;
  height: 44px;
  max-width: 200px;
  text-decoration: none !important;
}
.tf-brand img.is-wide {
  width: auto !important;
  height: 40px !important;
  max-width: 200px !important;
  max-height: 40px !important;
  object-fit: contain;
  display: block;
  /* 浅底上强制按深色呈现，避免误用白字透明 logo */
  filter: none;
}
.tf-brand img.is-mark {
  width: 40px !important;
  height: 40px !important;
  border-radius: 10px;
  object-fit: contain;
  display: block;
}
.tf-top-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  font-size: 13px;
  white-space: nowrap;
}
.tf-top-link {
  color: var(--tf-muted) !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.tf-top-link:hover { color: var(--tf-primary) !important; }
.tf-top-sep {
  width: 1px;
  height: 14px;
  background: var(--tf-border);
}
.tf-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--tf-fg);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.tf-lang-btn:hover { background: var(--tf-muted-bg); }

.tf-main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1;
  margin: 0;
  padding: 8px 48px 40px;
}
.tf-promo {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 16px 16px 16px 0;
  min-height: 100vh;
}
.tf-promo-photo,
.tf-promo-stage {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: calc(100vh - 32px);
  overflow: hidden;
  border-radius: 24px;
  background: #1a1440 url("/themes/clientarea/xingchen/assets/img/login-poster.jpg") center / cover no-repeat;
  box-shadow: 0 20px 50px -24px rgba(15, 23, 42, 0.35);
}
.tf-promo-poster,
.tf-promo-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tf-promo-video {
  opacity: 0;
  transition: opacity 0.7s ease;
}
.tf-promo-video.is-on { opacity: 1; }
.tf-promo-veil {
  position: absolute;
  inset: 0;
  background: #181D1A;
  pointer-events: none;
  z-index: 2;
}
.tf-promo-inner { display: none; }
.tf-hero-block {
  width: 100%;
  max-width: 400px;
  text-align: center;
  margin-bottom: 28px;
}
.tf-hero {
  margin: 0;
  font-size: clamp(36px, 3.6vw, 48px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.04em;
  color: var(--tf-fg);
}
.tf-hero-line { display: block; }
.tf-hero em {
  font-style: normal;
  color: var(--tf-primary);
}
.tf-hero-sub {
  margin: 14px auto 0;
  max-width: 300px;
  font-size: 15px;
  line-height: 1.55;
  color: #6B7280;
  font-weight: 400;
  word-break: keep-all;
}
.tf-learn { display: none; }

.tf-form-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
}
.tf-form-wrap {
  width: 100%;
  max-width: 380px;
  padding: 28px 28px 22px;
  border: 1px solid #EFEFEF;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 12px 40px -18px rgba(15, 23, 42, 0.12);
}
.tf-form-title {
  margin: 0;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.025em;
  color: var(--tf-fg);
}
.tf-form-sub {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--tf-muted);
}
.tf-tabs {
  display: flex;
  gap: 20px;
  margin: 0 0 18px;
  padding: 0 !important;
  border: none !important;
  border-bottom: 1px solid #F0F0F0 !important;
}
.tf-tabs .nav-item { margin: 0; }
.tf-tab {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-bottom: -1px !important;
  padding: 0 0 10px !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  background: transparent !important;
  color: #9CA3AF !important;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none !important;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.tf-tab:hover { color: var(--tf-fg) !important; }
.tf-tab.active {
  color: var(--tf-fg) !important;
  border-bottom-color: var(--tf-fg) !important;
}

.tf-field { margin-bottom: 12px; position: relative; }
body.tf-login .tf-field > label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
}
.tf-control {
  display: flex;
  align-items: center;
  height: 48px;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
}
.tf-control:hover { border-color: #D1D5DB; }
.tf-control:focus-within {
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.06);
}
.tf-control .form-control,
.tf-login .tf-control .form-control,
.tf-login .tf-control select.form-control {
  height: 100% !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  background: #fff !important;
  background-image: none !important;
  padding: 0 15px !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  color: var(--tf-fg) !important;
  -webkit-appearance: none;
  appearance: none;
}
.tf-control .form-control::placeholder {
  color: #98A2B3 !important;
  opacity: 1;
}
/* 干掉浏览器自动填充蓝底/黄底 */
.tf-login .tf-control .form-control:-webkit-autofill,
.tf-login .tf-control .form-control:-webkit-autofill:hover,
.tf-login .tf-control .form-control:-webkit-autofill:focus,
.tf-login .tf-control .form-control:-webkit-autofill:active {
  -webkit-text-fill-color: var(--tf-fg) !important;
  caret-color: var(--tf-fg);
  transition: background-color 99999s ease-in-out 0s;
  box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
}
.tf-control-pwd { position: relative; }
.tf-control-pwd .form-control { padding-right: 46px !important; }
.tf-pwd-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #98A2B3;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background 0.15s ease;
}
.tf-pwd-toggle:hover {
  color: var(--tf-fg);
  background: #F2F4F7;
}
.tf-pwd-toggle i { font-size: 18px; line-height: 1; }
.tf-field-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}
.tf-muted-link {
  font-size: 12px;
  color: #9CA3AF !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: color 0.15s ease;
}
.tf-muted-link:hover { color: var(--tf-fg) !important; }
.tf-phone-row { gap: 0; }
.tf-phone-row .tf-phone-code {
  flex: 0 0 118px;
  max-width: 118px;
  padding: 0 10px 0 14px !important;
  border-right: 1px solid #E4E7EC !important;
  border-radius: 0 !important;
  color: #344054 !important;
  font-size: 13px !important;
  background:
    #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2398A2B3' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 10px center !important;
  background-size: 12px !important;
  cursor: pointer;
}
.tf-phone-row .tf-phone-code:focus {
  background-color: #fff !important;
}
.tf-code-row { gap: 0; }
.tf-code-btn {
  flex: 0 0 auto;
  height: 100%;
  padding: 0 16px;
  border: none;
  border-left: 1px solid #E4E7EC;
  background: #F8F9FB;
  color: #344054;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.tf-code-btn:hover {
  background: #F2F4F7;
  color: var(--tf-fg);
}
.tf-switch-mode { margin: 2px 0 10px; }
.tf-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 2px 0 4px;
  font-size: 12px;
  line-height: 1.55;
  color: #9CA3AF;
  cursor: pointer;
  user-select: none;
}
.tf-check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.tf-check::before {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border: 1px solid #D0D5DD;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 1px rgba(16, 24, 40, 0.04);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.tf-check:has(input:checked)::before {
  border-color: #111827;
  background: #111827 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
  box-shadow: none;
}
.tf-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  margin-top: 14px;
  border: none;
  border-radius: 12px;
  background: #111111;
  color: #fff !important;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.18s ease;
}
.tf-submit:hover {
  background: #1A1A1A;
  color: #fff !important;
  box-shadow: none;
}
.tf-submit:active { transform: none; }
.tf-submit span { display: none; }
.tf-submit.is-busy { pointer-events: none; opacity: 0.72; }
.tf-dim-layer {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(248, 249, 247, 0.58);
  backdrop-filter: grayscale(0.18) saturate(0.72) brightness(0.94);
  -webkit-backdrop-filter: grayscale(0.18) saturate(0.72) brightness(0.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.tf-dim-layer.is-active {
  opacity: 1;
  pointer-events: auto;
  cursor: progress;
}
.tf-dim-dot {
  width: 26px;
  height: 26px;
  border: 2px solid rgba(24, 29, 26, 0.12);
  border-top-color: #1E4631;
  border-radius: 50%;
  animation: xcSpin 0.7s linear infinite;
}
body.tf-auth-loading { cursor: progress; }
.tf-register {
  margin: 16px 0 0;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid #E5E7EB;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  line-height: 1;
  color: #6B7280;
}
.tf-register a {
  display: inline-flex;
  align-items: center;
  color: #111827 !important;
  font-weight: 500;
  text-decoration: none !important;
}
.tf-register a:hover { color: #111827 !important; }
.tf-oauth { margin: 0 0 6px; }
.tf-oauth-sep {
  position: relative;
  text-align: center;
  margin: 14px 0 16px;
}
.tf-oauth-sep::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  border-top: 1px solid #EEEEEE;
}
.tf-oauth-sep span {
  position: relative;
  display: inline-block;
  padding: 0 10px;
  background: #fff;
  font-size: 13px;
  color: #9CA3AF;
  text-transform: none;
}
.tf-oauth-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tf-oauth-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: none;
  border-radius: 12px;
  background: #F4F4F5;
  text-decoration: none !important;
  padding: 8px 12px;
  color: #111827 !important;
  font-size: 14px;
}
.tf-oauth-item:hover { background: #ECECEE; }
.tf-oauth-item img { max-height: 18px; }

.tf-foot {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  width: 100%;
  margin: 0;
  padding: 0 48px 20px;
  font-size: 11px;
  line-height: 1.8;
  color: rgba(102, 112, 133, 0.85);
}

/* captcha / custom fields on auth pages */
body.tf-login .form-group {
  margin-bottom: 22px;
}
body.tf-login .form-group > label {
  display: block;
  margin-bottom: 9px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(14, 18, 22, 0.78);
}
body.tf-login .form-group .input-group {
  display: flex;
  align-items: stretch;
  height: 50px;
  border: 1px solid #E4E7EC;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
body.tf-login .form-group .input-group:focus-within {
  border-color: var(--tf-primary);
  box-shadow: 0 0 0 3px rgba(237, 109, 143, 0.14);
}
body.tf-login .form-group .input-group .form-control {
  height: 100% !important;
  border: none !important;
  box-shadow: none !important;
  background: #fff !important;
  padding: 0 15px !important;
  font-size: 14px !important;
}
body.tf-login .form-group .input-group-append {
  display: flex;
  align-items: center;
  margin: 0;
  border-left: 1px solid #E4E7EC;
  background: #F8F9FB;
}
body.tf-login .form-group .input-group-append img {
  height: 100%;
  width: auto !important;
  max-width: 120px;
  object-fit: cover;
  border: none !important;
  cursor: pointer;
}
.tf-textarea {
  display: block;
  width: 100%;
  min-height: 88px;
  padding: 12px 15px !important;
  border: 1px solid #E4E7EC !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  font-size: 14px !important;
  color: var(--tf-fg) !important;
  resize: vertical;
}
.tf-textarea:focus {
  border-color: var(--tf-primary) !important;
  box-shadow: 0 0 0 3px rgba(237, 109, 143, 0.14) !important;
  outline: none !important;
}
.tf-check-agree {
  margin: 8px 0 0;
  align-items: flex-start;
}
.tf-check-agree a {
  color: #111827 !important;
  text-decoration: none !important;
}
.tf-check-agree a:hover { text-decoration: underline !important; }
body.tf-login .tf-form-wrap { padding-bottom: 8px; }

/* alerts on login */
body.tf-login .alert {
  position: relative;
  z-index: 5;
  max-width: 400px;
  margin: 12px auto 0;
  width: calc(100% - 96px);
}

@media (min-width: 992px) {
  .tf-vsplit { display: none; }
}
@media (max-width: 991.98px) {
  .tf-shell {
    display: flex;
    flex-direction: column;
    background: #fff;
  }
  .tf-left { min-height: auto; flex: 1; }
  .tf-top { min-height: 72px; padding: 8px 24px 0; }
  .tf-main { padding: 12px 24px 32px; }
  .tf-promo { display: none; }
  .tf-form-col { width: 100%; }
  .tf-form-wrap { padding: 22px 18px; }
  .tf-foot { justify-content: center; text-align: center; padding: 0 24px 20px; }
}

/* ========== App shell ========== */
body.xc-app {
  background: var(--bg-page) !important;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text-main);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  padding-bottom: 64px;
}
body.xc-app ::selection {
  background: var(--isle-coral-light);
  color: var(--isle-coral);
}

body.xc-app #page-topbar,
body.xc-app .navbar-header,
body.xc-app .vertical-menu,
body.xc-app .footer,
body.xc-app .page-title-box {
  display: none !important;
  pointer-events: none !important;
}

body.xc-app .main-content {
  margin-left: 0 !important;
  /* 禁止 z-index：否则内部 .modal 会被关进低层叠上下文，body 上的 .modal-backdrop 永远盖住弹窗 */
  position: relative;
}

body.xc-app .page-content {
  padding: 0 !important;
  margin-top: 0 !important;
}

body.xc-app .container-fluid {
  padding: 0 !important;
  max-width: none;
  margin: 0;
}

body.xc-app .card {
  border: 1px solid rgba(0,0,0,0.04) !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: var(--shadow-soft) !important;
}

body.xc-app .btn-primary {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  border-radius: 999px !important;
}

/* ========== Top bar ========== */
.xc-chrome {
  position: sticky;
  top: 0;
  z-index: 1100;
  background: #fff;
  border-bottom: 1px solid var(--isle-line);
}
.xc-topbar {
  background: #fff;
  position: relative;
  z-index: auto;
  box-shadow: none;
  border-bottom: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
}
.xc-topbar-inner {
  background: #fff;
}

/*
 * Bootstrap 提示/确认框（须配合 footer 把 .modal 挂到 body）
 * 高于 topbar(1100) / 抽屉(12000) / 命令面板(13000)
 */
body.xc-app .modal-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 19990 !important;
  background-color: #000 !important;
}
body.xc-app .modal-backdrop.fade { opacity: 0 !important; }
body.xc-app .modal-backdrop.show { opacity: 0.5 !important; }
body.xc-app .modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 20000 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}
body.xc-app .modal.show { display: block !important; }
body.xc-app .modal .modal-dialog {
  position: relative;
  z-index: 1;
}
body.xc-app .modal .modal-content {
  position: relative;
  z-index: 2;
  background: #fff !important;
  pointer-events: auto !important;
  border: 1px solid rgba(24, 29, 26, 0.06) !important;
  border-radius: 24px !important;
  box-shadow: 0 24px 64px rgba(24, 29, 26, 0.14) !important;
  overflow: hidden;
}
body.xc-app .modal .modal-dialog {
  max-width: 460px;
  margin: 1.75rem auto;
}
body.xc-app .modal .modal-dialog.modal-lg,
body.xc-app .modal .modal-dialog.modal-xl {
  max-width: 560px;
}
body.xc-app .modal .modal-header {
  border-bottom: 1px solid #ECEEEB !important;
  padding: 18px 24px !important;
  align-items: center;
}
body.xc-app .modal .modal-title {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #181D1A !important;
  margin: 0 !important;
}
body.xc-app .modal .close {
  opacity: 0.45;
  font-weight: 300;
  text-shadow: none;
  padding: 0;
  margin: 0 0 0 auto !important;
}
body.xc-app .modal .close:hover { opacity: 0.85; color: #181D1A; }
body.xc-app .modal .modal-body {
  padding: 22px 24px 8px !important;
  color: #181D1A;
}
body.xc-app .modal .modal-footer {
  border-top: 1px solid #ECEEEB !important;
  padding: 14px 24px 20px !important;
  justify-content: flex-end;
  gap: 8px;
}
body.xc-app .modal .btn-primary,
body.xc-app .modal .rightBill {
  background: #1E4631 !important;
  border: none !important;
  border-radius: 999px !important;
  color: #fff !important;
  font-weight: 500 !important;
  padding: 8px 20px !important;
  box-shadow: none !important;
}
body.xc-app .modal .btn-primary:hover,
body.xc-app .modal .rightBill:hover { background: #163525 !important; }
body.xc-app .modal .btn-outline-light,
body.xc-app .modal .btn-secondary,
body.xc-app .modal .btn-light,
body.xc-app .idc-renew-cancel {
  background: #F8F9F7 !important;
  border: 1px solid #ECEEEB !important;
  color: #181D1A !important;
  border-radius: 999px !important;
  font-weight: 500 !important;
  padding: 8px 18px !important;
}
body.xc-app .modal-backdrop.show {
  opacity: 0.38 !important;
  background-color: #181D1A !important;
}

#modalRenew.modal,
#moduleReinstall.modal { padding: 16px !important; }
#modalRenew .modal-dialog,
#moduleReinstall .modal-dialog {
  max-width: 440px !important;
  margin: auto;
}
#moduleReinstall .modal-dialog { max-width: 480px !important; }
#modalRenew .modal-content.xc-renew-sheet,
#modalRenew .xc-renew-sheet,
#moduleReinstall .modal-content.xc-renew-sheet,
#moduleReinstall .xc-renew-sheet {
  background: #F7F8F6 !important;
  border: none !important;
  border-radius: 28px !important;
  box-shadow: 0 28px 80px rgba(24, 29, 26, 0.22) !important;
  overflow: hidden;
}
#moduleReinstall .xc-renew-sheet { overflow: visible !important; }
#moduleReinstall .custom-control-input:checked ~ .custom-control-label::before {
  background-color: #1E4631 !important;
  border-color: #1E4631 !important;
}
#modalRenew .modal-header,
#modalRenew .modal-body,
#modalRenew .modal-footer { display: none; }
.xc-renew-form { margin: 0; }
.xc-renew-head {
  position: relative;
  padding: 28px 28px 20px;
  background:
    radial-gradient(120px 80px at 90% -10%, rgba(30, 70, 49, 0.08), transparent 70%),
    linear-gradient(180deg, #EAF1EC 0%, #F7F8F6 100%);
}
.xc-renew-kicker {
  margin: 0 0 8px;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #1E4631;
  font-weight: 600;
}
.xc-renew-head h5 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: #181D1A;
  letter-spacing: -0.03em;
  line-height: 1.25;
}
.xc-renew-host {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: #7A857E;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.xc-renew-x {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  color: #7A857E;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  font-size: 14px;
}
.xc-renew-x:hover { background: #fff; color: #181D1A; }
.xc-renew-body { padding: 8px 28px 8px; }
.xc-renew-hint {
  margin: 0 0 12px;
  font-size: 12.5px;
  color: #7A857E;
}
.xc-renew-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.xc-renew-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 16px 16px 14px;
  background: #fff;
  border: 1px solid #ECEEEB;
  border-radius: 18px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.xc-renew-plan input { position: absolute; opacity: 0; pointer-events: none; }
.xc-renew-plan-name {
  font-size: 12.5px;
  color: #7A857E;
}
.xc-renew-plan-price {
  font-size: 22px;
  font-weight: 600;
  color: #181D1A;
  letter-spacing: -0.03em;
  line-height: 1;
}
.xc-renew-plan-price small {
  font-size: 13px;
  font-weight: 500;
  margin-right: 1px;
}
.xc-renew-plan:hover {
  border-color: rgba(30, 70, 49, 0.28);
  background: #fff;
}
.xc-renew-plan.is-on,
.xc-renew-plan.active {
  border-color: #1E4631;
  box-shadow: 0 0 0 1px #1E4631;
  background: #fff;
}
.xc-renew-plan.is-on .xc-renew-plan-name,
.xc-renew-plan.active .xc-renew-plan-name { color: #1E4631; font-weight: 500; }
.xc-renew-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 18px 28px 24px;
  background: #fff;
  border-top: 1px solid #ECEEEB;
}
.xc-renew-due { min-width: 0; }
.xc-renew-due span {
  display: block;
  font-size: 12px;
  color: #7A857E;
  margin-bottom: 4px;
}
.xc-renew-due strong {
  display: block;
  font-size: 26px;
  font-weight: 600;
  color: #181D1A;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.xc-renew-due strong i { font-style: normal; }
.xc-renew-due em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 12px;
  color: #7A857E;
}
.xc-renew-go {
  flex-shrink: 0;
  height: 44px;
  padding: 0 22px;
  border: none;
  border-radius: 999px;
  background: #1E4631;
  color: #fff !important;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.xc-renew-go:hover { background: #163525; }
.xc-reinstall-body { padding: 4px 28px 8px; }
.xc-reinstall-field { margin-bottom: 16px; }
.xc-reinstall-field > span {
  display: block;
  font-size: 12.5px;
  color: #7A857E;
  margin-bottom: 8px;
}
.xc-reinstall-os {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
#moduleReinstall .form-control,
#moduleReinstall .bootstrap-select > .dropdown-toggle {
  height: 44px !important;
  border-radius: 14px !important;
  border: 1px solid #ECEEEB !important;
  background: #fff !important;
  box-shadow: none !important;
  color: #181D1A !important;
  font-size: 13.5px !important;
}
#moduleReinstall .bootstrap-select { width: 100% !important; }
#moduleReinstall .bootstrap-select .dropdown-menu {
  border-radius: 14px;
  border: 1px solid #ECEEEB;
  box-shadow: 0 16px 40px rgba(24, 29, 26, 0.12);
  z-index: 20050 !important;
}
.xc-reinstall-port { display: flex; gap: 8px; }
.xc-reinstall-port .form-control { flex: 1; }
.xc-reinstall-rand {
  width: 44px;
  height: 44px;
  border: 1px solid #ECEEEB;
  border-radius: 14px;
  background: #fff;
  color: #1E4631;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.xc-reinstall-rand:hover { background: #EAF1EC; }
.xc-reinstall-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  background: #fff;
  border: 1px solid #ECEEEB;
  border-radius: 16px;
  cursor: pointer;
  font-size: 13.5px;
  color: #181D1A;
  font-weight: 500;
}
.xc-reinstall-warn {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  margin: 4px 0 8px;
  background: #FFF2F3;
  border: 1px solid rgba(242, 114, 127, 0.16);
  border-radius: 16px;
  cursor: pointer;
}
.xc-reinstall-warn input { margin-top: 3px; flex-shrink: 0; }
.xc-reinstall-warn strong { display: block; font-size: 13.5px; color: #181D1A; font-weight: 600; }
.xc-reinstall-warn p { margin: 4px 0 0; font-size: 12px; color: #7A857E; line-height: 1.45; }
#reinstallAgreeCheckbox { color: #F2727F; font-size: 12px; margin-top: 4px; }
.xc-reinstall-msg { font-size: 12.5px; color: #7A857E; min-height: 0; }
.xc-reinstall-cancel {
  height: 44px;
  padding: 0 18px;
  border: 1px solid #ECEEEB;
  border-radius: 999px;
  background: #F8F9F7;
  color: #181D1A;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.xc-reinstall-cancel:hover { background: #fff; }
@media (max-width: 575.98px) {
  .xc-reinstall-os { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
  .xc-renew-grid { grid-template-columns: 1fr; }
  .xc-renew-foot { flex-direction: column; align-items: stretch; }
  .xc-renew-go { width: 100%; }
}
body.xc-app.modal-open .xc-topbar,
body.xc-app.modal-open .xc-nav-drop,
body.xc-app.modal-open .dropdown-menu,
body.xc-app.modal-open .xc-subnav,
body.xc-app.modal-open .xc-drawer-mask,
body.xc-app.modal-open .xc-cmd,
body.xc-app.modal-open .xc-preview-layer {
  z-index: 1000 !important;
}
body.xc-app.modal-open .xc-drawer-mask,
body.xc-app.modal-open .xc-cmd,
body.xc-app.modal-open .xc-preview-layer {
  pointer-events: none !important;
}

.xc-topbar-inner {
  position: relative;
  height: 64px;
  padding: 0 24px;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--isle-line);
}

.xc-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  width: auto;
  max-width: 280px;
  min-width: 0;
  flex-shrink: 0;
  text-decoration: none !important;
  color: #1f2937 !important;
  transition: opacity 0.2s ease;
}
/* 后台横版 logo：限高，宽度自适应，不再旁挂公司名 */
.xc-brand-logo.is-wide {
  width: auto !important;
  height: 42px !important;
  max-width: 260px !important;
  max-height: 42px !important;
  border-radius: 0;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
/* 无后台 logo 时的方标 */
.xc-brand-logo.is-mark {
  width: 40px !important;
  height: 40px !important;
  max-width: 40px !important;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.xc-brand:hover .xc-brand-logo { opacity: 0.92; }
.xc-brand span {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xc-search {
  flex: 1;
  max-width: 420px;
  position: relative;
  margin: 0 auto;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #F3F5F3;
  color: var(--isle-muted);
  cursor: pointer;
  text-align: left;
  transition: box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.xc-search:hover {
  background: #ECEFEC;
  box-shadow: none;
}
.xc-search:focus,
.xc-search:focus-within {
  background: #fff;
  border-color: rgba(30, 70, 49, 0.2);
  box-shadow: 0 0 0 4px rgba(30, 70, 49, 0.05);
}
.xc-search i.ph-magnifying-glass {
  font-size: 16px;
  color: rgba(118, 130, 123, 0.7);
  flex-shrink: 0;
}
.xc-search-placeholder {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: rgba(118, 130, 123, 0.75);
  font-weight: 400;
}
.xc-search-kbd {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--isle-line);
  box-shadow: 0 1px 2px rgba(24,29,26,0.04);
  font-size: 10px;
  color: var(--isle-muted);
  flex-shrink: 0;
}

/* ========== Command palette ========== */
body.xc-cmd-open { overflow: hidden; }
.xc-cmd {
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 16px 24px;
}
.xc-cmd[hidden] { display: none !important; }
.xc-cmd-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.xc-cmd-panel {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: min(72vh, 640px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
  overflow: hidden;
  animation: xcCmdIn 0.18s ease;
}
@keyframes xcCmdIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.xc-cmd-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #F1F2F4;
}
.xc-cmd-ico { font-size: 20px; color: #9CA3AF; flex-shrink: 0; }
.xc-cmd-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
  color: #111827;
  line-height: 1.4;
}
.xc-cmd-input::placeholder { color: #9CA3AF; }
.xc-cmd-esc {
  flex-shrink: 0;
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid #E5E7EB;
  background: #F9FAFB;
  color: #6B7280;
  font-size: 11px;
  line-height: 22px;
  cursor: pointer;
}
.xc-cmd-scopes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px 4px;
}
.xc-cmd-scope {
  height: 30px;
  padding: 0 12px;
  border: 1px solid #E5E7EB;
  border-radius: 999px;
  background: #fff;
  color: #6B7280;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.xc-cmd-scope:hover { border-color: #D1D5DB; color: #111827; }
.xc-cmd-scope.is-on {
  border-color: transparent;
  background: var(--brand-light);
  color: var(--brand);
}
.xc-cmd-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 10px 12px;
  -webkit-overflow-scrolling: touch;
}
.xc-cmd-group {
  padding: 10px 10px 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #9CA3AF;
  text-transform: uppercase;
}
.xc-cmd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none !important;
  color: #111827 !important;
  transition: background 0.12s ease;
}
.xc-cmd-item:hover,
.xc-cmd-item.is-active {
  background: #F5F6F8;
}
.xc-cmd-item.is-primary.is-active,
.xc-cmd-item.is-primary:hover {
  background: var(--brand-light);
}
.xc-cmd-item-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #F3F4F6;
  color: #6B7280;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.xc-cmd-item.is-primary .xc-cmd-item-ico {
  background: rgba(120, 104, 230, 0.12);
  color: var(--brand);
}
.xc-cmd-item-ico i { font-size: 18px; }
.xc-cmd-item-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.xc-cmd-item-text strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.xc-cmd-item-text small {
  font-size: 12px;
  color: #9CA3AF;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.xc-cmd-item-go {
  font-size: 14px;
  color: #D1D5DB;
  flex-shrink: 0;
}
.xc-cmd-item.is-active .xc-cmd-item-go { color: var(--brand); }
.xc-cmd-empty {
  padding: 36px 16px;
  text-align: center;
  color: #9CA3AF;
  font-size: 14px;
}
.xc-cmd-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 10px 16px;
  border-top: 1px solid #F1F2F4;
  background: #FAFAFB;
  color: #9CA3AF;
  font-size: 11px;
}
.xc-cmd-foot kbd {
  display: inline-block;
  min-width: 18px;
  padding: 1px 5px;
  margin-right: 2px;
  border: 1px solid #E5E7EB;
  border-radius: 4px;
  background: #fff;
  font-size: 10px;
  font-family: inherit;
  color: #6B7280;
  text-align: center;
}

.xc-nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: 8px;
  color: #6b7280;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 22px;
  padding: 0;
  flex-shrink: 0;
}
.xc-nav-toggle:hover { background: #F3F4F6; color: #374151; }

.xc-drawer-head { display: none; }
.xc-drawer-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  z-index: 11900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.xc-drawer-close {
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  border-radius: 8px;
  color: #9ca3af;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
}
.xc-drawer-close:hover { background: #F3F4F6; color: #374151; }
body.xc-nav-lock { overflow: hidden; }

.xc-top-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  width: auto;
  min-width: 180px;
  justify-content: flex-end;
  flex-shrink: 0;
  color: #6b7280;
}
.xc-top-actions .xc-action,
.xc-top-actions > .xc-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.xc-top-actions .xc-action-user {
  margin-left: 10px;
}

.xc-icon-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--isle-muted) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  text-decoration: none !important;
  font-size: 17px;
  line-height: 1;
  transition: color 0.15s ease, background 0.15s ease;
  padding: 0;
  box-shadow: none;
}
.xc-icon-btn i.ph {
  font-size: 17px;
  line-height: 1;
  font-weight: 400;
}
.xc-icon-btn:hover,
.xc-icon-btn:focus {
  color: var(--isle-ink) !important;
  background: var(--bg-page);
  outline: none;
  transform: none;
  box-shadow: none;
}
.xc-icon-btn:active {
  background: #EBEBEF;
}

.xc-badge-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid #fff;
}

.xc-top-divider {
  width: 1px;
  height: 18px;
  background: #e5e7eb;
  margin: 0 6px;
}

.xc-lang-flag {
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

.xc-user-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 34px;
  height: 36px;
  padding: 4px 10px 4px 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.2s ease;
}
.xc-user-trigger:hover { background: var(--bg-page); }
.xc-user-trigger:focus { outline: none; }
.xc-user-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--isle-ink);
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.xc-user-caret {
  font-size: 12px;
  color: var(--isle-muted);
}
.xc-avatar-ring {
  position: relative;
  display: inline-flex;
  width: 32px;
  height: 32px;
}
.xc-avatar-letter {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E3E8F4 0%, #EFEBF7 50%, #FCE8EB 100%);
  color: var(--isle-ink);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  user-select: none;
  border: 1px solid #fff;
  box-shadow: 0 1px 2px rgba(24,29,26,0.06);
  transition: transform 0.2s ease;
}
.xc-user-trigger:hover .xc-avatar-letter {
  transform: scale(1.05);
}
.xc-avatar-online {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3B825D;
  border: 2px solid #fff;
}
.xc-avatar-lg {
  width: 40px;
  height: 40px;
  font-size: 16px;
  flex-shrink: 0;
}

.xc-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--xc-border);
  background: #fff;
  cursor: pointer;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
}
.xc-user-pill:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* 顶栏下拉：语言 / 用户（覆盖 global.css .dropdown-menu{min-width:5rem!important}） */
.xc-drop-menu.dropdown-menu {
  width: 240px !important;
  min-width: 240px !important;
  max-width: none !important;
  padding: 8px;
  margin-top: 10px !important;
  border: 1px solid #F1F0F5;
  border-radius: 14px;
  box-shadow: 0 16px 40px -12px rgba(45, 42, 80, 0.18);
  background: #fff;
  z-index: 3100;
}
.xc-lang-menu.dropdown-menu {
  width: 168px !important;
  min-width: 168px !important;
  padding: 6px;
}
.xc-user-menu.dropdown-menu {
  width: 248px !important;
  min-width: 248px !important;
  padding: 0;
  overflow: hidden;
}
.xc-user-menu-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 14px;
}
.xc-user-menu-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.xc-user-menu-meta strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.xc-user-menu-meta span {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.3;
  white-space: nowrap;
}
.xc-drop-group { padding: 4px 8px; }
.xc-drop-divider {
  height: 1px;
  background: #F1F0F5;
  margin: 4px 0;
}
.xc-drop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-main) !important;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.xc-drop-item i.ph {
  font-size: 18px;
  color: #8B8FA3;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.xc-drop-item:hover {
  background: #F7F6FB;
  color: var(--brand) !important;
}
.xc-drop-item:hover i.ph { color: var(--brand); }
.xc-drop-menu .dropdown-item { display: none; }

/* ========== Sub nav ========== */
.xc-subnav {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 44px;
  height: auto;
  display: flex;
  align-items: center;
  overflow: visible;
  background: #fff;
  border: none;
  box-shadow: none;
  position: relative;
  top: auto;
  z-index: 30;
}

.xc-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
  overflow: visible;
  scrollbar-width: none;
}
.xc-nav-links::-webkit-scrollbar { display: none; }

.xc-nav-item { position: relative; flex-shrink: 0; z-index: 1; }
.xc-nav-item.open,
.xc-nav-item:hover { z-index: 1200; }

.xc-nav-link {
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--isle-muted) !important;
  text-decoration: none !important;
  border-radius: 0;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s ease;
}
.xc-nav-link i.ph { display: none; }
.xc-nav-link .xc-nav-caret {
  font-size: 12px;
  color: var(--isle-muted);
  transition: transform 0.3s var(--ease);
}
.xc-nav-link:hover {
  color: var(--isle-ink) !important;
}
.xc-nav-link.active,
.xc-nav-item.is-active > .xc-nav-link {
  background: transparent !important;
  color: var(--isle-ink) !important;
  font-weight: 500;
  padding: 0;
  box-shadow: none !important;
}
.xc-nav-link.active::after,
.xc-nav-item.is-active > .xc-nav-link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2.5px;
  background: var(--isle-green);
  border-radius: 99px;
}
.xc-nav-link.active i.ph,
.xc-nav-item.is-active > .xc-nav-link i.ph {
  color: var(--isle-ink) !important;
}
.xc-nav-item.open > .xc-nav-link { color: var(--isle-green) !important; }
.xc-nav-item.open > .xc-nav-link .xc-nav-caret { transform: rotate(180deg); }

.xc-nav-drop {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  z-index: 3000;
  padding-top: 8px;
  transform: none;
  transition: opacity 0.15s ease, visibility 0.15s;
}
.xc-nav-drop-inner {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
  border: 1px solid #f3f4f6;
  padding: 8px;
}
.xc-nav-item.open > .xc-nav-drop {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.xc-nav-drop a {
  display: block !important;
  padding: 10px 12px !important;
  border-radius: 10px !important;
  color: var(--text-main) !important;
  font-size: 13px !important;
  text-decoration: none !important;
  opacity: 0;
  transform: translateX(-6px);
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.25s var(--ease-spring), opacity 0.25s ease, transform 0.25s var(--ease-out);
}
.xc-nav-item.open > .xc-nav-drop a {
  opacity: 1;
  transform: none;
}
.xc-nav-item.open > .xc-nav-drop a:nth-child(1) { transition-delay: 0.02s; }
.xc-nav-item.open > .xc-nav-drop a:nth-child(2) { transition-delay: 0.04s; }
.xc-nav-item.open > .xc-nav-drop a:nth-child(3) { transition-delay: 0.06s; }
.xc-nav-item.open > .xc-nav-drop a:nth-child(4) { transition-delay: 0.08s; }
.xc-nav-item.open > .xc-nav-drop a:nth-child(5) { transition-delay: 0.1s; }
.xc-nav-item.open > .xc-nav-drop a:nth-child(6) { transition-delay: 0.12s; }
.xc-nav-item.open > .xc-nav-drop a:nth-child(n+7) { transition-delay: 0.14s; }
.xc-nav-drop a:hover,
.xc-nav-drop a.active {
  background: var(--brand-light) !important;
  color: var(--brand) !important;
  padding-left: 16px !important;
}
@media (min-width: 768px) {
  .xc-nav-item.has-drop:hover > .xc-nav-drop,
  .xc-nav-item.has-drop:focus-within > .xc-nav-drop {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  .xc-nav-item.has-drop:hover > .xc-nav-drop a,
  .xc-nav-item.has-drop:focus-within > .xc-nav-drop a {
    opacity: 1;
    transform: none;
  }
}

/* ========== Page wrap ========== */
.xc-main {
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding: 28px 24px 40px !important;
}

body.xc-app.xc-dash-page .xc-main {
  padding-top: 28px !important;
}

.xc-page-inner {
  background: var(--surface);
  border: 1px solid #f3f4f6;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-soft);
  padding: 24px;
  /* 内页切换：仅轻微淡入，无位移 */
  animation: xcFadeIn 0.28s ease both;
}

body.xc-app.xc-dash-page .xc-page-inner {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.xc-footer {
  max-width: 1240px;
  margin: 8px auto 0;
  padding: 28px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--isle-muted);
  border-top: 1px solid rgba(234, 236, 233, 0.7);
}
.xc-footer-left,
.xc-footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.xc-footer-dot { color: var(--isle-line); }
.xc-footer-motto {
  font-family: Georgia, "Songti SC", "STSong", serif;
  color: rgba(118, 130, 123, 0.85);
}
.xc-footer-right a {
  color: var(--isle-muted) !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}
.xc-footer-right a:hover { color: var(--isle-ink) !important; }
.xc-footer-ver {
  padding: 2px 10px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--isle-line);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  color: rgba(118, 130, 123, 0.8);
}

/* ========== Dashboard ========== */
.xc-dash {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.xc-hero-row {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 24px;
  animation: xcFadeIn 0.35s ease both;
}
.xc-quick-card {
  transition: border-color 0.25s ease, transform 0.35s var(--ease-spring), box-shadow 0.35s ease;
}
.xc-quick-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(45, 42, 80, 0.08);
}
.xc-panel,
.xc-poster {
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease;
}
.xc-panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(45, 42, 80, 0.06);
}
.xc-poster:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}
.xc-prod-item {
  transition: background 0.25s ease, transform 0.25s var(--ease-out), padding-left 0.25s ease;
  border-radius: 10px;
}
.xc-prod-item:hover {
  background: rgba(245, 247, 250, 0.8);
  transform: translateX(2px);
}
.xc-act-item {
  transition: transform 0.25s var(--ease-out);
}
.xc-act-item:hover {
  transform: translateX(3px);
}
.xc-act-item:hover .xc-act-dot {
  transform: scale(1.15);
}
.xc-act-dot {
  transition: transform 0.3s var(--ease-spring);
}

.xc-hero-banner {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-soft);
  height: 220px;
  background-size: cover;
  background-position: center;
}
.xc-hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.6) 45%, transparent 100%);
}
.xc-hero-content {
  position: relative;
  z-index: 1;
  padding: 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.xc-hero-greet {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  color: #4b5563;
}
.xc-hero-greet i { font-size: 18px; }
.xc-hero-greet .text-amber { color: #eab308; }
.xc-hero-greet .text-orange { color: #f97316; }
.xc-hero-greet .text-indigo { color: #6366f1; }
.xc-hero-title {
  font-size: 30px;
  font-weight: 700;
  color: #1f2937;
  letter-spacing: 0.02em;
  margin: 0 0 8px;
  line-height: 1.25;
}
.xc-hero-sub {
  font-size: 14px;
  color: #6b7280;
  margin: 8px 0 0;
}
.xc-hero-line {
  width: 32px;
  height: 2px;
  background: #d1d5db;
  margin-top: 16px;
}

.xc-user-card {
  background: #fff;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-soft);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 220px;
}
.xc-user-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none !important;
  color: inherit !important;
  cursor: pointer;
}
.xc-user-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #f9fafb;
  flex-shrink: 0;
  background: var(--brand-light);
}
.xc-user-card-meta { flex: 1; min-width: 0; }
.xc-user-card-meta h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.xc-user-tag {
  font-size: 10px;
  background: #f3f4f6;
  color: #6b7280;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 400;
}
.xc-user-card-meta p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #9ca3af;
}
.xc-user-card-arrow {
  color: #d1d5db;
  font-size: 16px;
  transition: color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}
.xc-user-card-head:hover .xc-user-card-arrow {
  color: var(--brand);
  transform: translateX(4px);
}

.xc-balance-block { margin-top: 12px; }
.xc-balance-label { font-size: 12px; color: #6b7280; margin: 0 0 4px; }
.xc-balance-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.xc-balance-amount {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.1;
}
.xc-btn-recharge {
  background: var(--brand);
  color: #fff !important;
  font-size: 12px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: background 0.2s ease;
  white-space: nowrap;
}
.xc-btn-recharge:hover { background: rgba(120, 104, 230, 0.9); color: #fff !important; }

.xc-user-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f9fafb;
}
.xc-stat {
  text-align: center;
  text-decoration: none !important;
  color: inherit !important;
  flex: 1;
}
.xc-stat-label { font-size: 12px; color: #9ca3af; margin: 0 0 2px; }
.xc-stat-val {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}
.xc-stat-val span { font-size: 12px; font-weight: 400; color: #6b7280; }

/* Quick cards */
.xc-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  animation: xcFadeIn 0.35s ease 0.05s both;
}

.xc-quick-card {
  background: #fff;
  border-radius: var(--radius-2xl);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  text-decoration: none !important;
  color: inherit !important;
  border: 1px solid transparent;
  transition: border-color 0.2s ease;
  min-height: 180px;
  display: block;
}
.xc-quick-card:hover { border-color: rgba(120, 104, 230, 0.1); }
.xc-quick-card.qc-orange:hover { border-color: rgba(249, 115, 22, 0.12); }
.xc-quick-card.qc-teal:hover { border-color: rgba(20, 184, 166, 0.12); }
.xc-quick-card.qc-blue:hover { border-color: rgba(59, 130, 246, 0.12); }

.xc-glow-blob {
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
}
.qc-brand .xc-glow-blob { background: rgba(120, 104, 230, 0.2); }
.qc-orange .xc-glow-blob { background: rgba(251, 146, 60, 0.2); }
.qc-teal .xc-glow-blob { background: rgba(45, 212, 191, 0.2); }
.qc-blue .xc-glow-blob { background: rgba(96, 165, 250, 0.2); }

.xc-quick-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.xc-quick-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
  transition: transform 0.25s var(--ease);
}
.xc-quick-card:hover .xc-quick-icon { transform: scale(1.1); }
.qc-brand .xc-quick-icon { background: var(--brand-light); color: var(--brand); }
.qc-orange .xc-quick-icon { background: #fff7ed; color: #f97316; }
.qc-teal .xc-quick-icon { background: #f0fdfa; color: #14b8a6; }
.qc-blue .xc-quick-icon { background: #eff6ff; color: #3b82f6; }

.xc-quick-inner h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 4px;
}
.xc-quick-inner p {
  font-size: 14px;
  color: #9ca3af;
  margin: 0 0 24px;
  flex: 1;
}
.xc-quick-link {
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}
.xc-quick-card:hover .xc-quick-link { gap: 8px; }
.qc-brand .xc-quick-link { color: var(--brand); }
.qc-orange .xc-quick-link { color: #f97316; }
.qc-teal .xc-quick-link { color: #14b8a6; }
.qc-blue .xc-quick-link { color: #3b82f6; }

/* Bottom: products + activity + poster */
.xc-bottom-grid {
  display: grid;
  grid-template-columns: 5fr 4fr 3fr;
  gap: 24px;
  align-items: stretch;
  animation: xcFadeIn 0.35s ease 0.08s both;
}

.xc-panel {
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(229, 231, 235, 0.6);
  padding: 24px 24px 20px;
}

.xc-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid #f3f4f6;
}
.xc-panel-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.xc-panel-head h3,
.xc-panel-title h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
  letter-spacing: 0.02em;
}
.xc-panel-title span {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 400;
}
.xc-panel-more {
  font-size: 12px;
  color: #6366f1 !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.xc-panel-more:hover { color: #4f46e5 !important; }

/* Product list — minimal */
.xc-prod-list { display: flex; flex-direction: column; }
.xc-prod-item {
  display: flex;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #f3f4f6;
  text-decoration: none !important;
  color: inherit !important;
}
.xc-prod-item:last-child { border-bottom: none; }
.xc-prod-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  flex-shrink: 0;
  font-size: 20px;
}
.xc-prod-info { flex: 1; min-width: 0; }
.xc-prod-name {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 2px;
}
.xc-prod-desc {
  font-size: 12px;
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.xc-prod-status {
  width: 96px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  font-size: 13px;
  color: #10b981;
}
.xc-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
}
.xc-status-dot.xc-dot-muted { background: #d1d5db; }
.xc-status-muted { color: #9ca3af !important; }
.xc-prod-date {
  width: 96px;
  text-align: right;
  font-size: 13px;
  color: #9ca3af;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  flex-shrink: 0;
}
.xc-prod-more {
  width: 32px;
  text-align: right;
  flex-shrink: 0;
  color: #d1d5db;
  background: none;
  border: none;
  padding: 0;
  font-size: 18px;
  cursor: pointer;
  text-decoration: none !important;
}
.xc-prod-item:hover .xc-prod-more,
.xc-prod-more:hover { color: #6b7280; }

/* Activity timeline — minimal */
.xc-act-list { position: relative; }
.xc-act-line {
  position: absolute;
  left: 7px;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: #f3f4f6;
}
.xc-act-item {
  display: flex;
  align-items: stretch;
  text-decoration: none !important;
  color: inherit !important;
}
.xc-act-node {
  width: 32px;
  padding-top: 22px;
  display: flex;
  justify-content: flex-start;
  position: relative;
  z-index: 1;
  background: #fff;
  flex-shrink: 0;
}
.xc-act-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #8b5cf6;
  background: #fff;
  box-sizing: border-box;
}
.xc-act-body {
  flex: 1;
  padding: 16px 0;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.xc-act-item.is-last .xc-act-body { border-bottom: none; }
.xc-act-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.xc-act-top h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.xc-act-top span {
  font-size: 12px;
  color: #9ca3af;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  flex-shrink: 0;
}
.xc-act-desc {
  font-size: 12px;
  color: #9ca3af;
}

/* Poster card */
.xc-poster {
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 320px;
  text-decoration: none !important;
  display: block;
}
.xc-poster-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 45%, transparent 100%);
  transition: background 0.45s ease;
}
.xc-poster:hover .xc-poster-mask {
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.28) 45%, transparent 100%);
}
.xc-poster-body {
  position: relative;
  z-index: 1;
  padding: 24px;
  height: 100%;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.xc-poster-quote {
  text-align: center;
  padding-top: 32px;
}
.xc-poster-quote p {
  margin: 0;
  color: rgba(255,255,255,0.95);
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 18px;
  letter-spacing: 0.2em;
  line-height: 1.7;
}
.xc-poster-quote span {
  display: block;
  margin-top: 12px;
  font-size: 10px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.xc-poster-btn {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 128px;
  transition: background 0.25s ease, color 0.25s ease;
}
.xc-poster:hover .xc-poster-btn {
  background: #fff;
  color: #111827;
}

/* Compat aliases for older class names used elsewhere */
.glass-nav { display: none; }
.action-tag {
  padding: 8px 16px;
  background: var(--bg-page);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-main) !important;
  text-decoration: none !important;
}
.xc-svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.5;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Responsive */
@media (max-width: 1200px) {
  .xc-hero-row { grid-template-columns: 1fr; }
  .xc-user-card { height: auto; }
  .xc-quick-grid { grid-template-columns: repeat(2, 1fr); }
  .xc-bottom-grid { grid-template-columns: 1fr; }
  .xc-poster { min-height: 260px; }
}

@media (max-width: 767.98px) {
  .xc-chrome { z-index: auto; overflow: visible; background: #fff; }
  body.xc-nav-open .xc-chrome { z-index: 12050; }
  .xc-topbar { position: relative; top: auto; z-index: auto; background: #fff; }
  .xc-topbar-inner {
    height: 56px;
    min-height: 56px;
    flex-wrap: nowrap;
    padding: 0 12px;
    gap: 8px;
  }
  .xc-brand { width: auto; gap: 8px; }
  .xc-brand { max-width: 180px; }
  .xc-brand-logo.is-wide { height: 34px !important; max-width: 170px !important; max-height: 34px !important; }
  .xc-brand-logo.is-mark { width: 34px !important; height: 34px !important; border-radius: 9px; }
  .xc-brand span { font-size: 16px; }
  .xc-nav-toggle { display: inline-flex; order: -1; margin-right: 2px; }

  .xc-search { display: none; }
  .xc-cmd {
    padding: 8vh 12px 16px;
    align-items: flex-start;
  }
  .xc-cmd-panel {
    max-height: min(84vh, 720px);
    border-radius: 16px;
  }
  .xc-cmd-foot { display: none; }

  .xc-top-actions { width: auto; min-width: 0; gap: 0; margin-left: auto; }
  .xc-top-actions .xc-action-lang { display: none; }
  .xc-top-actions .xc-action-user { margin-left: 4px; }
  .xc-user-name,
  .xc-user-caret { display: none; }
  .xc-user-trigger { width: 34px; height: 34px; padding: 0; }
  .xc-user-menu.dropdown-menu {
    width: min(248px, calc(100vw - 24px)) !important;
    min-width: min(248px, calc(100vw - 24px)) !important;
    right: 0 !important;
    left: auto !important;
  }
  .xc-top-divider { display: none; }

  .xc-drawer-mask { display: block; }
  .xc-topbar.nav-open .xc-drawer-mask,
  body.xc-nav-open .xc-drawer-mask {
    opacity: 1;
    pointer-events: auto;
    z-index: 12040;
  }
  .xc-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #F1F0F5;
    flex-shrink: 0;
  }
  .xc-drawer-brand { width: auto; }
  .xc-drawer-brand span { color: var(--brand); }

  .xc-subnav {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(300px, 82vw);
    max-width: 300px;
    height: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
    z-index: 12050;
    transform: translateX(-105%);
    transition: transform 0.28s var(--ease);
    box-shadow: 8px 0 32px rgba(15, 23, 42, 0.12);
    overflow: hidden;
  }
  .xc-topbar.nav-open .xc-subnav,
  body.xc-nav-open .xc-subnav { transform: translateX(0); }

  .xc-nav-links {
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 12px 24px;
  }
  .xc-nav-item { width: 100%; z-index: auto; }
  .xc-nav-item:hover,
  .xc-nav-item.open { z-index: auto; }
  .xc-nav-link {
    width: 100%;
    height: 46px;
    justify-content: flex-start;
    gap: 12px;
    padding: 0 14px !important;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #4B5563 !important;
  }
  .xc-nav-link i.ph { display: inline-flex; font-size: 20px; color: #9CA3AF; }
  .xc-nav-link.active::after,
  .xc-nav-item.is-active > .xc-nav-link::after { display: none; }
  .xc-nav-link .xc-nav-caret {
    margin-left: auto;
    font-size: 14px;
    transform: rotate(-90deg);
  }
  .xc-nav-item.open > .xc-nav-link .xc-nav-caret { transform: rotate(0deg); }
  .xc-nav-link.active,
  .xc-nav-link:hover {
    background: var(--brand-light) !important;
    color: var(--brand) !important;
    box-shadow: none;
    transform: none;
  }
  .xc-nav-link.active i.ph,
  .xc-nav-link:hover i.ph { color: var(--brand); }
  .xc-nav-item.open > .xc-nav-link { color: var(--brand) !important; }

  .xc-nav-drop {
    position: static;
    padding: 0 0 4px;
    transform: none;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }
  .xc-nav-drop-inner {
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 2px 0 6px 34px;
    border-radius: 0;
  }
  .xc-nav-drop a {
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 13px;
    color: #6B7280 !important;
  }
  .xc-nav-item.open > .xc-nav-drop {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    max-height: 480px;
    transform: none;
  }
  .xc-nav-item.open > .xc-nav-drop a {
    opacity: 1;
    transform: none;
  }

  .xc-page-wrap .page-content { padding-top: 0 !important; }
  .xc-main { padding: 14px 12px 24px !important; }
  .xc-page-inner {
    padding: 14px;
    border-radius: 14px;
  }
  body.xc-app .page-title-box {
    padding: 4px 0 12px !important;
    margin-bottom: 4px !important;
  }
  body.xc-app .page-title-box h4 { font-size: 16px !important; }

  .xc-hero-row { gap: 12px; }
  .xc-hero-banner { height: 168px; border-radius: 16px; }
  .xc-hero-title { font-size: 22px; }
  .xc-hero-content { padding: 20px; }
  .xc-user-card { border-radius: 16px; }
  .xc-quick-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .xc-quick-card { border-radius: 14px; min-height: 0; }
  .xc-quick-inner { padding: 16px; }
  .xc-quick-inner h3 { font-size: 15px; }
  .xc-quick-inner p {
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .xc-bottom-grid { gap: 12px; }
  .xc-panel { border-radius: 14px; padding: 14px; }
  .xc-prod-date { display: none; }
  .xc-prod-status { width: auto; }
  .xc-prod-item { grid-template-columns: 40px 1fr auto auto; gap: 10px; padding: 10px 0; }
  .xc-footer { flex-direction: column; gap: 6px; text-align: center; padding: 12px 16px 28px; }

  #xcSpinner { top: 64px; right: 12px; }
  .xc-preview-layer { top: 56px; padding: 14px 12px 28px; }
}

/* ========== SPA progress + spinner ========== */
#xcProgress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
#xcProgress.is-active { opacity: 1; }
#xcProgress .xc-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgba(120, 104, 230, 0.15), var(--brand) 40%, #a78bfa 100%);
  box-shadow: 0 0 10px rgba(120, 104, 230, 0.45);
  border-radius: 0 2px 2px 0;
  transition: width 0.25s var(--ease-out), opacity 0.3s ease;
}

#xcSpinner {
  position: fixed;
  top: 78px;
  right: 28px;
  z-index: 10000;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-6px) scale(0.9);
  transition: opacity 0.25s ease, transform 0.3s var(--ease-spring);
}
#xcSpinner.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.xc-spinner-ring {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(120, 104, 230, 0.18);
  border-top-color: var(--brand);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 24px rgba(45, 42, 80, 0.1);
  animation: xcSpin 0.7s linear infinite;
}
@keyframes xcSpin {
  to { transform: rotate(360deg); }
}

body.xc-spa-loading { cursor: progress; }
.xc-dim-layer {
  position: fixed;
  left: 0;
  right: 0;
  top: 108px;
  bottom: 0;
  z-index: 800;
  background: rgba(248, 249, 247, 0.58);
  backdrop-filter: grayscale(0.12) saturate(0.75);
  -webkit-backdrop-filter: grayscale(0.12) saturate(0.75);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.xc-dim-layer.is-active {
  opacity: 1;
  pointer-events: auto;
}
body.xc-spa-dim .xc-page-wrap { filter: brightness(0.92) saturate(0.82); }
@media (max-width: 767.98px) {
  .xc-dim-layer { top: 56px; }
}

/* ========== Details skeleton preview ========== */
@keyframes xcShimmerMove {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.xc-shimmer {
  background: linear-gradient(90deg, #eef1f6 0%, #f7f8fb 45%, #eef1f6 90%);
  background-size: 200% 100%;
  animation: xcShimmerMove 1.2s ease-in-out infinite;
}

.xc-preview-layer {
  position: fixed;
  left: 0;
  right: 0;
  top: 108px;
  bottom: 0;
  z-index: 800;
  background: var(--bg-page);
  padding: 28px 24px 40px;
  overflow: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.xc-preview-layer.is-active {
  opacity: 1;
  pointer-events: auto;
}
.xc-preview-layer .xc-skel-details {
  max-width: 1600px;
  margin: 0 auto;
}

.xc-details-page {
  position: relative;
  min-height: 480px;
}
.xc-skel-details {
  width: 100%;
}
.xc-skel-details.is-hide {
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.xc-details-real {
  transition: opacity 0.3s ease;
}
.xc-details-real.is-show {
  opacity: 1 !important;
}
.xc-details-page.is-ready .xc-skel-details {
  position: absolute;
  inset: 0;
}

.xc-skel-shell {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 18px;
  max-width: 1240px;
  margin: 0 auto;
  align-items: start;
}
.xc-skel-nav {
  background: #fff;
  border: 1px solid rgba(24, 29, 26, 0.055);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.xc-skel-nav-item { display: block; height: 36px; border-radius: 10px; }
.xc-skel-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.xc-skel-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid rgba(24, 29, 26, 0.055);
  border-radius: 16px;
}
.xc-skel-avatar { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; }
.xc-skel-profile-meta { display: flex; flex-direction: column; gap: 8px; }
.xc-skel-line { display: block; border-radius: 6px; }
@media (max-width: 767.98px) {
  .xc-skel-shell { grid-template-columns: 1fr; }
  .xc-skel-nav { flex-direction: row; }
}

.xc-skel-card,
.xc-details-card {
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.xc-skel-block {
  padding: 28px 40px 8px;
}
.xc-skel-block + .xc-skel-block {
  border-top: 1px solid #f3f4f6;
  margin-top: 8px;
  padding-top: 24px;
}
.xc-skel-heading {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 18px;
}
.xc-skel-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 28px;
}
.xc-skel-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.xc-skel-field.xc-skel-full { grid-column: 1 / -1; }
.xc-skel-empty { visibility: hidden; }
.xc-skel-label {
  font-size: 13px;
  color: #4b5563;
  font-weight: 500;
}
.xc-skel-input {
  display: block;
  height: 38px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}
.xc-skel-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
}
.xc-skel-box {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
  flex-shrink: 0;
}
.xc-skel-check-text {
  font-size: 13px;
  color: #6b7280;
}
.xc-skel-btn {
  display: block;
  width: 120px;
  height: 38px;
  border-radius: 999px;
  margin-top: 4px;
  margin-bottom: 12px;
}

.xc-details-card .card-body {
  padding: 28px 40px !important;
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
}
.xc-details-card .card-body + .card-body {
  border-top: 1px solid #f3f4f6;
}
.xc-details-card .card-title {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
}
.xc-details-card .form-control {
  border-radius: 8px !important;
  border-color: #e5e7eb !important;
  height: 38px;
}
.xc-details-card .btn-primary {
  border-radius: 999px !important;
  padding-left: 28px;
  padding-right: 28px;
  background: var(--brand) !important;
  border-color: var(--brand) !important;
}

/* ========== Tickets abstract skeleton ========== */
.xc-tickets-page { position: relative; min-height: 360px; }
.xc-skel-tickets.is-hide {
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.xc-tickets-page.is-ready .xc-skel-tickets {
  position: absolute;
  inset: 0;
}
.xc-tickets-real {
  transition: opacity 0.28s ease;
}
.xc-tickets-real.is-show { opacity: 1 !important; }

.xc-skel-tickets-card {
  padding: 20px 20px 16px;
  min-height: 420px;
}
.xc-skel-tickets-toolbar {
  margin-bottom: 16px;
}
.xc-skel-pill {
  display: inline-block;
  width: 112px;
  height: 34px;
  border-radius: 999px;
}
.xc-skel-table {
  border: 1px solid #eef0f4;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.xc-skel-thead {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: #f6f7fb;
  border-bottom: 1px solid #eef0f4;
}
.xc-skel-th {
  display: block;
  height: 12px;
  border-radius: 6px;
  flex: 0 0 auto;
}
.xc-skel-tbody { padding: 6px 0 10px; }
.xc-skel-tr {
  display: grid;
  grid-template-columns: 1fr 2.4fr 1.2fr 1.2fr 0.9fr 0.9fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #f3f4f6;
}
.xc-skel-tr:last-child { border-bottom: none; }
.xc-skel-td {
  display: block;
  height: 12px;
  border-radius: 6px;
  width: 72%;
}
.xc-skel-td.w-lg { width: 88%; }
.xc-skel-td.w-sm { width: 48%; }
.xc-skel-tickets-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding: 0 4px;
}
.xc-skel-foot-left {
  display: block;
  width: 64px;
  height: 12px;
  border-radius: 6px;
}
.xc-skel-foot-right {
  display: block;
  width: 96px;
  height: 28px;
  border-radius: 8px;
}

@media (max-width: 767.98px) {
  .xc-preview-layer { top: 112px; padding: 16px; }
  .xc-skel-row { grid-template-columns: 1fr; }
  .xc-skel-empty { display: none; }
  .xc-skel-block { padding: 20px 16px 4px; }
  .xc-details-card .card-body { padding: 20px 16px !important; }
  .xc-skel-tr { grid-template-columns: 1fr 1fr; }
  .xc-skel-tr .xc-skel-td:nth-child(n+3) { display: none; }
  .xc-skel-thead .xc-skel-th:nth-child(n+3) { display: none; }
}

@media (max-width: 767.98px) {
  #xcSpinner { top: 70px; right: 16px; }
}

/* ========== Addfunds / 充值 ========== */
.xc-af-page { animation: xcFadeIn 0.35s var(--ease) both; }
.xc-af-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.xc-af-balance.card,
.xc-af-main.card {
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  background: var(--surface);
}
.xc-af-balance {
  padding: 28px 24px;
  text-align: left;
}
.xc-af-balance-label {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--text-sub);
}
.xc-af-balance-value {
  margin: 0 0 10px;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.xc-af-balance-value span {
  font-size: 18px;
  font-weight: 600;
  margin-left: 4px;
  color: var(--text-main);
}
.xc-af-balance-hint {
  margin: 0;
  font-size: 12px;
  color: var(--text-sub);
}
.xc-af-main .card-body { padding: 28px 32px 32px; }
.xc-af-title {
  margin: 0 0 28px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}
.xc-af-section { margin-bottom: 28px; }
.xc-af-section-last { margin-bottom: 0; }
.xc-af-label {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
}
.xc-af-gateways {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.xc-af-gw { cursor: pointer; }
.xc-af-page .addfunds-payment {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  min-height: 52px;
  padding: 10px 20px;
  margin: 0;
  border: 1.5px solid var(--xc-border);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.xc-af-page .addfunds-payment:hover {
  border-color: var(--xc-primary);
}
.xc-af-page .addfunds-payment.active {
  border-color: var(--xc-primary);
  background: var(--xc-primary-soft);
  box-shadow: 0 0 0 1px rgba(120, 104, 230, 0.15);
}
.xc-af-page .addfunds-payment img {
  height: 28px;
  max-width: 110px;
  object-fit: contain;
}
.xc-af-gw-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}
.xc-af-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.xc-af-quick-btn {
  min-width: 88px;
  height: 40px;
  padding: 0 18px;
  border: 1.5px solid #34D399;
  border-radius: 8px;
  background: #fff;
  color: #10B981;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.xc-af-quick-btn:hover {
  background: #ECFDF5;
}
.xc-af-quick-btn.is-active {
  background: #10B981;
  border-color: #10B981;
  color: #fff;
}
.xc-af-custom {
  display: flex;
  align-items: stretch;
  gap: 12px;
}
.xc-af-input.form-control {
  flex: 1;
  height: 46px !important;
  border: 1px solid var(--xc-border) !important;
  border-radius: 10px !important;
  font-size: 14px;
  box-shadow: none !important;
  background: #fff;
}
.xc-af-input.form-control:focus {
  border-color: var(--xc-primary) !important;
  box-shadow: 0 0 0 3px rgba(120, 104, 230, 0.12) !important;
}
.xc-af-submit.btn,
.xc-af-page .pay-now-btn {
  flex: 0 0 auto;
  min-width: 96px;
  height: 46px;
  padding: 0 28px;
  border: none;
  border-radius: 10px;
  background: var(--xc-primary) !important;
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  line-height: 46px;
  box-shadow: none;
}
.xc-af-submit.btn:hover,
.xc-af-page .pay-now-btn:hover {
  background: var(--xc-primary-dark) !important;
  color: #fff !important;
}
.xc-af-tip {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--text-sub);
}

@media (max-width: 991.98px) {
  .xc-af-layout { grid-template-columns: 1fr; }
  .xc-af-balance { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; padding: 20px 22px; }
  .xc-af-balance-label { margin: 0; width: 100%; }
  .xc-af-balance-value { margin: 0; font-size: 28px; }
  .xc-af-balance-hint { margin: 0; }
}
@media (max-width: 575.98px) {
  .xc-af-main .card-body { padding: 22px 18px 24px; }
  .xc-af-custom { flex-direction: column; }
  .xc-af-submit.btn { width: 100%; }
  .xc-af-quick-btn { flex: 1 1 calc(50% - 12px); min-width: 0; }
}

/* 减弱动效偏好 */
@media (prefers-reduced-motion: reduce) {
  .xc-topbar,
  .xc-brand,
  .xc-search,
  .xc-top-actions,
  .xc-nav-item,
  .xc-nav-links > .xc-nav-link,
  .xc-main,
  .xc-page-inner,
  .xc-hero-row,
  .xc-quick-grid,
  .xc-bottom-grid,
  .xc-dash,
  body.xc-app:not(.xc-dash-page) .xc-page-inner .card,
  body.xc-app:not(.xc-dash-page) .xc-page-inner > .row > [class*="col-"],
  body.xc-app .page-title-box {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .xc-nav-drop,
  .xc-nav-drop a,
  .xc-quick-card,
  .xc-panel,
  .xc-poster,
  .xc-prod-item,
  .xc-act-item,
  .xc-icon-btn,
  .xc-nav-link {
    transition: none !important;
  }
  .xc-spinner-ring { animation: none !important; }
  .xc-page-wrap { transition: none !important; }
}

/* ========== Ticket submit ========== */
.xc-ticket-submit { display: flex; flex-direction: column; gap: 18px; }
.xc-ticket-hero {
  border-radius: 20px;
  background: linear-gradient(135deg, #F3F0FF 0%, #F7F8FC 55%, #EEF6FF 100%);
  border: 1px solid rgba(120, 104, 230, 0.08);
  padding: 36px 28px;
}
.xc-ticket-hero-inner { max-width: 720px; }
.xc-ticket-hero-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--brand);
  text-transform: uppercase;
}
.xc-ticket-hero-title {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  color: #1F2937;
  line-height: 1.35;
}
.xc-ticket-hero-sub {
  margin: 10px 0 0;
  font-size: 14px;
  color: #6B7280;
  line-height: 1.7;
}
.xc-ticket-dept-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.xc-ticket-dept {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 148px;
  padding: 18px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #EEF0F4;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.xc-ticket-dept:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  border-color: rgba(120, 104, 230, 0.22);
}
.xc-ticket-dept-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.xc-ticket-dept.tone-blue .xc-ticket-dept-ico { background: #E8F1FF; color: #3B82F6; }
.xc-ticket-dept.tone-teal .xc-ticket-dept-ico { background: #E6FAF7; color: #14B8A6; }
.xc-ticket-dept.tone-amber .xc-ticket-dept-ico { background: #FFF4E5; color: #F59E0B; }
.xc-ticket-dept.tone-green .xc-ticket-dept-ico { background: #EAF8EF; color: #22C55E; }
.xc-ticket-dept.tone-slate .xc-ticket-dept-ico { background: #F3F4F6; color: #6B7280; }
.xc-ticket-dept-name {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}
.xc-ticket-dept-desc {
  font-size: 12px;
  color: #9CA3AF;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.xc-ticket-help { display: flex; flex-direction: column; gap: 14px; }
.xc-ticket-help-card,
.xc-ticket-tip {
  background: #fff;
  border: 1px solid #EEF0F4;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.xc-ticket-help-card { padding: 8px 8px 4px; }
.xc-ticket-help-title {
  margin: 0;
  padding: 14px 16px 8px;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}
.xc-ticket-faq-item { border-top: 1px solid #F3F4F6; }
.xc-ticket-faq-item:first-child { border-top: none; }
.xc-ticket-faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: none;
  background: transparent;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
}
.xc-ticket-faq-btn i {
  color: #9CA3AF;
  transition: transform 0.2s ease;
}
.xc-ticket-faq-btn:not(.collapsed) i { transform: rotate(180deg); color: var(--brand); }
.xc-ticket-faq-body {
  padding: 0 16px 14px;
  color: #6B7280;
  font-size: 13px;
  line-height: 1.75;
}
.xc-ticket-faq-body p { margin: 0 0 8px; }
.xc-ticket-faq-body p:last-child { margin-bottom: 0; }
.xc-ticket-tips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.xc-ticket-tip { padding: 18px 18px 14px; }
.xc-ticket-tip h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}
.xc-ticket-tip ul {
  margin: 0;
  padding-left: 18px;
  color: #6B7280;
  font-size: 13px;
  line-height: 1.8;
}

/* ========== Account shell ========== */
.xc-account-shell {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.xc-account-nav {
  position: sticky;
  top: 132px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  background: #fff;
  border: 1px solid #EEF0F4;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.xc-account-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  color: #6B7280 !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}
.xc-account-nav-item i { font-size: 17px; }
.xc-account-nav-item:hover {
  background: #F5F6F8;
  color: #111827 !important;
}
.xc-account-nav-item.is-on {
  background: var(--isle-sage);
  color: var(--isle-green) !important;
}
.xc-account-main { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.xc-account-profile-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #EEF0F4;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.xc-account-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--isle-sage);
  color: var(--isle-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
}
.xc-account-profile-meta { flex: 1; min-width: 0; }
.xc-account-profile-meta h2 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}
.xc-account-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.xc-account-badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--isle-sage);
  color: var(--isle-green);
  font-size: 12px;
  font-weight: 600;
}
.xc-account-muted {
  margin: 0;
  font-size: 12px;
  color: #9CA3AF;
}
.xc-account-profile-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--isle-green) !important;
  text-decoration: none !important;
}
.xc-details-page .xc-details-card {
  border: 1px solid #EEF0F4;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  overflow: hidden;
}
.xc-details-page .xc-details-card .card-body {
  padding: 22px 22px 8px;
  border-top: 1px solid #F3F4F6;
}
.xc-details-page .xc-details-card .card-body:first-child { border-top: none; }
.xc-details-page .xc-details-card .card-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.xc-sec-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  background: linear-gradient(180deg, #EAF1EC 0%, #FFFFFF 72%);
  border: 1px solid rgba(24, 29, 26, 0.055);
  border-radius: 22px;
}
.xc-sec-hero-meta { flex: 1; min-width: 180px; }
.xc-sec-hero-meta h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
  color: var(--isle-ink);
  letter-spacing: -0.03em;
}
.xc-sec-hero-meta p { margin: 0; font-size: 12.5px; color: var(--isle-muted); }
.xc-sec-score { min-width: 180px; }
.xc-sec-score-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--isle-muted);
  margin-bottom: 8px;
}
.xc-sec-bar {
  height: 8px;
  border-radius: 99px;
  background: #ECEEEB;
  overflow: hidden;
}
.xc-sec-bar > i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--isle-green);
}
.xc-sec-list {
  background: #fff;
  border: 1px solid rgba(24, 29, 26, 0.055);
  border-radius: 22px;
  overflow: hidden;
}
.xc-sec-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid #ECEEEB;
}
.xc-sec-row:last-child { border-bottom: none; }
.xc-sec-ico {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--isle-sage);
  color: var(--isle-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.xc-sec-text { flex: 1; min-width: 0; }
.xc-sec-text h4 {
  margin: 0 0 4px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--isle-ink);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.xc-sec-text p { margin: 0; font-size: 12.5px; color: var(--isle-muted); }
.xc-sec-ok {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--isle-sage);
  color: var(--isle-green);
  font-size: 11px;
  font-weight: 500;
}
.xc-sec-off {
  background: #FFF2F3;
  color: var(--isle-coral);
}
.xc-sec-btn,
.xc-account-main .xc-sec-btn {
  flex-shrink: 0;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px !important;
  border: 1px solid var(--isle-line) !important;
  background: #F8F9F7 !important;
  color: var(--isle-ink) !important;
  font-size: 12.5px !important;
  font-weight: 500;
  line-height: 32px;
  text-decoration: none !important;
}
.xc-sec-btn:hover { background: var(--isle-sage) !important; color: var(--isle-green) !important; }
.xc-sec-btn.is-solid {
  background: var(--isle-green) !important;
  border-color: var(--isle-green) !important;
  color: #fff !important;
}
.xc-sec-btn:disabled,
.xc-sec-btn.is-off {
  opacity: 0.45;
  pointer-events: none;
}
.xc-sec-side { display: flex; flex-direction: column; gap: 12px; }
.xc-sec-grid { display: block; }
.xc-sec-list > .row {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(240px, 1fr);
  gap: 16px;
  margin: 0;
}
.xc-sec-list > .row > [class*="col-"] {
  width: auto;
  max-width: none;
  padding: 0;
  flex: none;
}
.xc-sec-list .card {
  background: #fff;
  border: 1px solid rgba(24, 29, 26, 0.055) !important;
  border-radius: 22px !important;
  box-shadow: none !important;
  margin-bottom: 12px !important;
}
.xc-sec-list .card-body { padding: 4px 0 !important; }
.xc-sec-list .card-title {
  padding: 18px 20px 8px;
  margin: 0 !important;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--isle-ink);
}
.xc-sec-list .security-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  margin: 0;
  border-bottom: 1px solid #ECEEEB;
}
.xc-sec-list .security-item:last-child { border-bottom: none; }
.xc-sec-list .security-item-icon {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px;
  border-radius: 14px !important;
  background: var(--isle-sage) !important;
  color: var(--isle-green) !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
}
.xc-sec-list .security-item-icon i { color: var(--isle-green) !important; font-size: 16px; }
.xc-sec-list .security-item-info {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.xc-sec-list .security-item-title {
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: var(--isle-ink) !important;
  margin: 0 0 4px !important;
}
.xc-sec-list .security-item-title small {
  margin-left: 8px;
  color: var(--isle-green) !important;
  font-size: 11px;
  font-weight: 500;
}
.xc-sec-list .security-item-title small i { color: var(--isle-green) !important; }
.xc-sec-list .security-item-desc {
  font-size: 12.5px !important;
  color: var(--isle-muted) !important;
}
.xc-sec-list .security-item .btn {
  flex-shrink: 0;
  height: 34px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  border: 1px solid var(--isle-line) !important;
  background: #F8F9F7 !important;
  color: var(--isle-ink) !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
  line-height: 32px !important;
  width: auto !important;
  min-width: 0 !important;
}
.xc-sec-list .security-item .btn-primary {
  background: var(--isle-green) !important;
  border-color: var(--isle-green) !important;
  color: #fff !important;
}
.xc-sec-list .security-item .btn:hover {
  background: var(--isle-sage) !important;
  color: var(--isle-green) !important;
}
.xc-sec-list .security-item .btn-primary:hover {
  background: #163525 !important;
  color: #fff !important;
}
.xc-sec-list .security-item-image { display: none; }
@media (max-width: 991.98px) {
  .xc-sec-list > .row { grid-template-columns: 1fr; }
}

/* account pages: soften legacy security blue header */
.xc-account-shell .security-header.bg-primary {
  background: linear-gradient(135deg, #7868E6 0%, #6A5AE0 100%) !important;
  border-radius: 16px;
  border: none;
  overflow: hidden;
}
.xc-account-shell > .xc-account-main > .card,
.xc-account-shell .xc-account-main > .card {
  border: 1px solid #EEF0F4;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.xc-account-shell .nav-tabs {
  border-bottom: 1px solid #EEF0F4;
}
.xc-account-shell .nav-tabs .nav-link {
  border: none;
  color: #6B7280;
  font-weight: 500;
  border-radius: 8px 8px 0 0;
}
.xc-account-shell .nav-tabs .nav-link.active {
  color: var(--brand);
  background: transparent;
  box-shadow: inset 0 -2px 0 var(--brand);
}

@media (max-width: 1199.98px) {
  .xc-ticket-dept-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .xc-account-shell { grid-template-columns: 1fr; }
  .xc-account-nav {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    gap: 6px;
  }
  .xc-account-nav-item { flex: 0 0 auto; white-space: nowrap; }
  .xc-ticket-tips { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
  .xc-ticket-hero { padding: 24px 18px; border-radius: 16px; }
  .xc-ticket-dept-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xc-account-profile-card { flex-wrap: wrap; }
}
@media (max-width: 575.98px) {
  .xc-ticket-dept-grid { grid-template-columns: 1fr; }
}

/* ========== Elegant dashboard (idc) ========== */
.idc-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.idc-hello {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 4px;
}
.idc-hello-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.idc-hello-badge {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--isle-sage);
  color: var(--isle-green);
  border: 1px solid rgba(30, 70, 49, 0.1);
  flex-shrink: 0;
  font-size: 13px;
}
.idc-hello-text {
  margin: 0;
  font-size: 13.5px;
  color: var(--isle-muted);
  line-height: 1.5;
}
.idc-hello-name {
  color: var(--isle-ink);
  font-weight: 500;
}
.idc-hello-right {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--isle-muted);
  flex-wrap: wrap;
}
.idc-hello-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.idc-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #3B825D;
  display: inline-block;
}
.idc-hello-sep { color: var(--isle-line); }
.idc-hello-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--isle-muted) !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}
.idc-hello-link:hover { color: var(--isle-green) !important; }

.idc-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #FDFDFC 100%);
  border-radius: 22px;
  border: 1px solid rgba(24, 29, 26, 0.055);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  text-decoration: none !important;
  color: inherit !important;
}
.idc-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(30, 70, 49, 0.12);
}
.idc-overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.idc-stat {
  padding: 24px;
  min-height: 142px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.idc-stat-member .idc-stat-glow {
  position: absolute;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: rgba(234, 241, 236, 0.7);
  filter: blur(28px);
  right: -32px;
  bottom: -32px;
  pointer-events: none;
}
.idc-stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.idc-stat-label {
  font-size: 13.5px;
  color: var(--isle-muted);
  font-weight: 500;
  transition: color 0.2s ease;
}
.idc-stat:hover .idc-stat-label { color: var(--isle-ink); }
.idc-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.75);
}
.idc-icon-p { background: var(--isle-slate-light); color: var(--isle-slate); border: 1px solid rgba(82, 104, 143, 0.1); }
.idc-icon-o { background: var(--isle-coral-light); color: var(--isle-coral); border: 1px solid rgba(235, 107, 120, 0.15); }
.idc-icon-b { background: var(--isle-sky-light); color: var(--isle-sky); border: 1px solid rgba(69, 123, 150, 0.1); }
.idc-icon-m { background: var(--isle-sage); color: var(--isle-green); border: 1px solid rgba(30, 70, 49, 0.1); }
.idc-stat-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.idc-stat-num {
  font-size: 32px;
  font-weight: 600;
  color: var(--isle-ink);
  line-height: 1;
  letter-spacing: -0.03em;
}
.idc-stat-num.idc-stat-rank {
  font-family: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.idc-stat-unit {
  font-size: 13px;
  color: var(--isle-muted);
  margin-left: 6px;
  font-weight: 400;
}
.idc-stat-cta {
  font-size: 12px;
  color: rgba(118, 130, 123, 0.75);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  transition: color 0.2s ease;
}
.idc-stat:hover .idc-stat-cta { color: var(--isle-green); }
.idc-stat-hint {
  font-size: 12px;
  color: rgba(118, 130, 123, 0.65);
}
.idc-stat-pill {
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--bg-page);
  color: var(--isle-muted);
  border: 1px solid var(--isle-line);
  white-space: nowrap;
}

.idc-middle {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 20px;
  align-items: stretch;
}
.idc-banner {
  position: relative;
  padding: 10px;
  overflow: hidden;
  min-height: 312px;
  border-radius: 26px;
  align-self: stretch;
}
.idc-banner-slide {
  position: absolute;
  inset: 10px;
  border-radius: 20px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  transition: opacity 0.7s ease;
}
.idc-banner-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.82) 46%, rgba(255,255,255,0) 100%);
  z-index: 1;
}
.idc-banner-slide.is-on {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}
.idc-banner-body {
  position: relative;
  z-index: 3;
  padding: 28px 40px;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}
.idc-banner-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--isle-line);
  box-shadow: 0 1px 2px rgba(24,29,26,0.04);
  margin-bottom: 18px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--isle-ink);
  letter-spacing: 0.02em;
}
.idc-banner-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--isle-coral);
}
.idc-banner-eyebrow {
  margin: 0 0 4px;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(118, 130, 123, 0.9);
  font-weight: 500;
}
.idc-banner h2 {
  font-family: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 600;
  color: var(--isle-ink);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.idc-banner-desc {
  font-size: 13.5px;
  color: var(--isle-muted);
  margin: 12px 0 0;
  line-height: 1.7;
}
.idc-banner-actions {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.idc-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--isle-ink);
  color: #fff !important;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(24,29,26,0.08);
  transition: background 0.25s ease;
}
.idc-banner-btn:hover { background: var(--isle-green); color: #fff !important; }
.idc-banner-tagline {
  font-size: 12px;
  color: var(--isle-muted);
}
.idc-banner-tagline span {
  color: var(--isle-coral);
  font-weight: 500;
  margin-left: 2px;
}
.idc-banner-dots {
  position: absolute;
  right: 28px;
  bottom: 26px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.2);
  backdrop-filter: blur(8px);
}
.idc-banner-dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 99px;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.2s ease;
}
.idc-banner-dots button.is-on {
  width: 16px;
  background: #fff;
}

.idc-account {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  border-radius: 26px;
  min-height: 312px;
}
.idc-account-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--isle-line);
}
.idc-account-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--isle-ink);
}
.idc-account-note {
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-style: italic;
  font-size: 11px;
  color: var(--isle-muted);
}
.idc-notices {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.idc-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  margin: 0 -8px;
  border-radius: 12px;
  text-decoration: none !important;
  transition: background 0.2s ease;
}
.idc-notice:hover { background: var(--bg-page); }
.idc-notice-badge {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--isle-sage);
  color: var(--isle-green);
  font-size: 11px;
  font-weight: 500;
}
.idc-notice-text {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--isle-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.idc-notice:hover .idc-notice-text { color: var(--isle-ink); }
.idc-notice i.ph {
  color: rgba(118, 130, 123, 0.6);
  font-size: 14px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.idc-notice:hover i.ph { transform: translateX(2px); }

.idc-wallet {
  position: relative;
  overflow: hidden;
  margin-top: 4px;
  background: #F6F8F6;
  border: 1px solid rgba(234, 236, 233, 0.9);
  border-radius: 18px;
  padding: 20px;
}
.idc-wallet-glow {
  position: absolute;
  width: 112px;
  height: 112px;
  border-radius: 999px;
  background: rgba(234, 241, 236, 0.7);
  filter: blur(28px);
  top: -40px;
  right: -40px;
  pointer-events: none;
}
.idc-balance-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 12.5px;
  color: var(--isle-muted);
  font-weight: 500;
}
.idc-mini {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--isle-green);
  color: #fff !important;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(30, 70, 49, 0.15);
  transition: background 0.2s ease;
}
.idc-mini:hover { background: var(--isle-ink); color: #fff !important; }
.idc-balance-num {
  position: relative;
  z-index: 1;
  font-size: 34px;
  font-weight: 600;
  color: var(--isle-ink);
  margin-bottom: 18px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.idc-balance-num span {
  font-size: 16px;
  font-weight: 500;
  margin-right: 4px;
}
.idc-balance-num em {
  font-style: normal;
  font-size: 13px;
  color: var(--isle-muted);
  font-weight: 400;
  margin-left: 4px;
}
.idc-balance-stats {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(234, 236, 233, 0.9);
}
.idc-b-l { display: block; font-size: 11.5px; color: var(--isle-muted); margin-bottom: 2px; }
.idc-b-v { font-size: 14px; color: var(--isle-ink); font-weight: 600; }
.idc-b-v small { font-size: 11px; font-weight: 400; color: var(--isle-muted); }
.idc-b-right { text-align: right; }

.idc-quick {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.idc-quick-item {
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  border-radius: 22px;
}
.idc-quick-corner {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 14px;
  color: transparent;
  transition: color 0.25s ease;
}
.idc-quick-item:hover .idc-quick-corner { color: rgba(118, 130, 123, 0.7); }
.idc-quick-buy:hover .idc-quick-corner { color: var(--isle-coral); }
.idc-quick-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #F3F5F3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--isle-ink);
  font-size: 20px;
  transition: all 0.3s var(--ease);
  box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.75);
}
.idc-quick-item:hover .idc-quick-icon {
  background: var(--isle-slate-light);
  color: var(--isle-slate);
}
.idc-quick-item:hover .idc-qi-sky { background: var(--isle-sky-light); color: var(--isle-sky); }
.idc-quick-item:hover .idc-qi-sage { background: var(--isle-sage); color: var(--isle-green); }
.idc-quick-item:hover .idc-qi-amber { background: var(--isle-amber-light); color: var(--isle-amber); }
.idc-qi-coral {
  background: rgba(255, 242, 243, 0.85);
  color: var(--isle-coral);
}
.idc-quick-item:hover .idc-qi-coral {
  background: var(--isle-coral);
  color: #fff;
}
.idc-quick-title {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--isle-ink);
  margin-bottom: 4px;
}
.idc-quick-desc { font-size: 12px; color: var(--isle-muted); }
.idc-quick-buy .idc-quick-desc {
  color: rgba(235, 107, 120, 0.85);
  font-weight: 500;
}

@media (max-width: 1199.98px) {
  .idc-quick { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991.98px) {
  .idc-overview { grid-template-columns: repeat(2, 1fr); }
  .idc-middle { grid-template-columns: 1fr; }
  .idc-banner { min-height: 260px; }
  .idc-banner-body { padding: 24px; }
  .idc-banner h2 { font-size: 24px; }
  .idc-banner-tagline { display: none; }
  .idc-account { min-height: auto; }
  body.xc-app .xc-main { padding: 24px 16px !important; }
  .xc-topbar-inner,
  .xc-subnav { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 575.98px) {
  .idc-overview { grid-template-columns: 1fr 1fr; gap: 12px; }
  .idc-stat { padding: 18px; min-height: 120px; }
  .idc-stat-num { font-size: 26px; }
  .idc-stat-cta,
  .idc-stat-hint,
  .idc-stat-pill { display: none; }
  .idc-quick { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .idc-quick-item { padding: 20px 12px; }
  .idc-hello-right { width: 100%; }
}


body.xc-app.xc-sd-page .xc-page-inner {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

/* Product detail: pearl header instead of blue gradient */
body.xc-app .server_header_box {
  background: linear-gradient(135deg, #FCFCFD 0%, #F5F6FA 100%) !important;
  background-image: none !important;
  color: var(--text-title) !important;
  border-radius: 20px !important;
  border: 1px solid var(--border-light) !important;
  box-shadow: var(--shadow-soft) !important;
  padding: 28px 32px !important;
}
body.xc-app .server_header_box .text-white,
body.xc-app .server_header_box h4,
body.xc-app .server_header_box h5,
body.xc-app .server_header_box .font-weight-bold {
  color: var(--text-title) !important;
}
body.xc-app .server_header_box .text-white-50,
body.xc-app .server_header_box .fs-12 {
  color: var(--text-muted) !important;
}
body.xc-app .server_header_box .box_left_wrap {
  border-left-color: rgba(29, 30, 36, 0.08) !important;
}
body.xc-app .server_header_box .left_wrap_btn,
body.xc-app .server_header_box .custom-button,
body.xc-app .server_header_box .restall-btn {
  background: var(--brand-primary) !important;
  box-shadow: none !important;
  border-radius: 999px !important;
  color: #fff !important;
  height: auto;
  min-height: 28px;
  padding: 4px 12px;
  line-height: 1.4;
}
body.xc-app .powerimg {
  background: var(--brand-primary-50) !important;
  color: var(--brand-primary) !important;
  border-radius: 16px;
}
body.xc-app .p-5.bg-primary {
  background: linear-gradient(135deg, #FCFCFD 0%, #F5F6FA 100%) !important;
  color: var(--text-title) !important;
  border-radius: 20px !important;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
}
body.xc-app .p-5.bg-primary h1,
body.xc-app .p-5.bg-primary .text-white {
  color: var(--text-title) !important;
}
body.xc-app .p-5.bg-primary .text-white-50 { color: var(--text-muted) !important; }
body.xc-app .p-5.bg-primary .bx { color: var(--brand-primary) !important; }

body.xc-sd-page .card {
  border-radius: 20px !important;
  border: 1px solid var(--border-light) !important;
  box-shadow: var(--shadow-soft) !important;
}
body.xc-sd-page .card-header,
body.xc-sd-page .card-title {
  color: var(--text-title);
  font-weight: 500;
  border-bottom-color: var(--border-light) !important;
  background: transparent !important;
}
body.xc-sd-page .table th {
  color: var(--text-muted);
  font-weight: 500;
  background: #FAFBFC;
  border-color: #F2F3F5 !important;
}
body.xc-sd-page .table td {
  color: var(--text-title);
  border-color: #F2F3F5 !important;
}
body.xc-sd-page .btn-primary {
  background: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
}
body.xc-sd-page .nav-tabs .nav-link.active {
  color: var(--text-title);
  box-shadow: inset 0 -2px 0 var(--text-title);
}

.xc-pts { display: flex; flex-direction: column; gap: 18px; max-width: 1000px; }
.xc-pts-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 28px 24px;
  border-radius: 24px;
  background:
    radial-gradient(160px 90px at 92% -10%, rgba(30, 70, 49, 0.1), transparent 70%),
    linear-gradient(180deg, #EAF1EC 0%, #FFFFFF 78%);
  border: 1px solid rgba(24, 29, 26, 0.055);
}
.xc-pts-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--isle-green);
  font-weight: 600;
}
.xc-pts-hero h1 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 600;
  color: var(--isle-ink);
  letter-spacing: -0.03em;
}
.xc-pts-balance { display: flex; align-items: baseline; gap: 8px; }
.xc-pts-balance strong {
  font-size: 48px;
  font-weight: 600;
  color: var(--isle-ink);
  letter-spacing: -0.04em;
  line-height: 1;
}
.xc-pts-balance small { font-size: 14px; color: var(--isle-muted); }
.xc-pts-hint { margin: 10px 0 0; font-size: 13px; color: var(--isle-muted); }
.xc-pts-hero-side { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.xc-pts-mini {
  min-width: 88px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--isle-line);
  border-radius: 14px;
}
.xc-pts-mini span { display: block; font-size: 11.5px; color: var(--isle-muted); }
.xc-pts-mini em { font-style: normal; font-size: 18px; font-weight: 600; color: var(--isle-ink); }
.xc-pts-cash,
a.xc-pts-cash {
  height: 42px;
  padding: 0 20px;
  border: none;
  border-radius: 999px;
  background: var(--isle-green);
  color: #fff !important;
  font-size: 13.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
  cursor: pointer;
}
.xc-pts-cash:hover { background: #163525; color: #fff !important; }
.xc-pts-cash[disabled] { opacity: 0.4; cursor: not-allowed; }
.xc-pts-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.xc-pts-stat {
  background: #fff;
  border: 1px solid rgba(24, 29, 26, 0.055);
  border-radius: 18px;
  padding: 18px 20px;
}
.xc-pts-stat span { display: block; font-size: 12px; color: var(--isle-muted); margin-bottom: 6px; }
.xc-pts-stat em { font-style: normal; font-size: 22px; font-weight: 600; color: var(--isle-ink); }
.xc-pts-stat p { margin: 6px 0 0; font-size: 12.5px; color: var(--isle-muted); }
.xc-pts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 16px;
}
.xc-pts-card {
  background: #fff;
  border: 1px solid rgba(24, 29, 26, 0.055);
  border-radius: 22px;
  padding: 22px 24px;
}
.xc-pts-card-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.xc-pts-bar {
  width: 6px;
  height: 14px;
  border-radius: 99px;
  background: var(--isle-green);
}
.xc-pts-card-hd h3 { margin: 0; font-size: 15.5px; font-weight: 600; color: var(--isle-ink); }
.xc-pts-earn-lead { font-size: 13.5px; color: var(--isle-muted); margin: 0 0 14px; }
.xc-pts-earn-lead strong { color: var(--isle-green); font-weight: 600; }
.xc-pts-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.xc-pts-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--isle-ink);
}
.xc-pts-steps span {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--isle-sage);
  color: var(--isle-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}
.xc-pts-rules { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.xc-pts-rule {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #F8F9F7;
  border-radius: 12px;
}
.xc-pts-rule strong { display: block; font-size: 13px; color: var(--isle-ink); }
.xc-pts-rule p { margin: 2px 0 0; font-size: 12px; color: var(--isle-muted); }
.xc-pts-rule em { font-style: normal; font-size: 12.5px; color: var(--isle-green); font-weight: 600; white-space: nowrap; }
.xc-pts-link-tip { margin: 0 0 12px; font-size: 13px; color: var(--isle-muted); }
.xc-pts-copy { display: flex; gap: 8px; }
.xc-pts-copy .form-control {
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--isle-line);
  background: #F8F9F7;
  font-size: 13px;
  color: var(--isle-ink);
}
.xc-pts-copy-btn {
  flex-shrink: 0;
  height: 44px;
  padding: 0 16px;
  border: none;
  border-radius: 12px;
  background: var(--isle-green);
  color: #fff !important;
  font-size: 13px;
  font-weight: 500;
}
.xc-pts-copy-btn:hover { background: #163525; color: #fff !important; }
.xc-pts-tabs { padding: 8px 8px 16px; }
.xc-pts-tabs .nav-tabs {
  border: none;
  padding: 8px 16px 0;
  gap: 18px;
}
.xc-pts-tabs .nav-link {
  border: none !important;
  background: none !important;
  color: var(--isle-muted) !important;
  font-size: 14px;
  padding: 12px 2px 10px !important;
  box-shadow: none !important;
}
.xc-pts-tabs .nav-link.active {
  color: var(--isle-green) !important;
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--isle-green) !important;
}
.xc-pts-tabs .tab-content { padding: 12px 12px 4px; }
.xc-pts-tabs .table { margin: 0; }
.xc-pts-tabs .table th {
  background: #F8F9F7;
  color: var(--isle-muted);
  font-weight: 500;
  border-color: #ECEEEB !important;
  font-size: 12.5px;
}
.xc-pts-tabs .table td {
  color: var(--isle-ink);
  border-color: #ECEEEB !important;
  font-size: 13px;
}
.xc-pts-join .xc-pts-hero { padding-bottom: 32px; }
.xc-pts-join .xc-pts-hero-main { max-width: 560px; }
@media (max-width: 767.98px) {
  .xc-pts-stats, .xc-pts-grid { grid-template-columns: 1fr; }
  .xc-pts-copy { flex-direction: column; }
}

/* ========== Phone-first shell ========== */
@media (max-width: 767.98px) {
  html, body.xc-app { overflow-x: hidden; }
  body.xc-app {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }
  .xc-topbar {
    padding-top: env(safe-area-inset-top, 0px);
  }
  .xc-topbar-inner {
    height: 56px;
    min-height: 56px;
    padding: 0 10px !important;
    gap: 6px;
    border-bottom: none;
  }
  .xc-brand { max-width: 128px; }
  .xc-brand-logo.is-wide {
    height: 28px !important;
    max-width: 118px !important;
    max-height: 28px !important;
  }
  .xc-top-actions { min-width: 0 !important; gap: 0; }
  .xc-top-actions .xc-action-lang,
  .xc-top-actions .xc-action-search,
  .xc-top-actions a.xc-action[title="消息"] { display: none !important; }
  .xc-icon-btn {
    width: 36px;
    height: 36px;
  }
  .xc-user-pill {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
    font-size: 16px;
  }
  .xc-user-pill span { display: none; }
  .xc-user-menu.dropdown-menu {
    position: fixed !important;
    top: calc(56px + env(safe-area-inset-top, 0px)) !important;
    right: 8px !important;
    left: auto !important;
    width: min(280px, calc(100vw - 16px)) !important;
    min-width: 0 !important;
  }

  body.xc-app .xc-main {
    padding: 12px 12px 28px !important;
  }
  .xc-page-inner {
    padding: 12px !important;
    border-radius: 16px !important;
  }
  .xc-footer {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding: 16px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  }
  .xc-footer-right { justify-content: center; flex-wrap: wrap; }

  .idc-layout { gap: 14px; }
  .idc-hello {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 0 2px;
  }
  .idc-hello-text { font-size: 13px; }
  .idc-hello-right {
    width: 100%;
    gap: 8px;
    font-size: 11.5px;
  }
  .idc-hello-sep { display: none; }
  .idc-overview {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .idc-stat {
    padding: 16px 14px;
    min-height: 112px;
    gap: 12px;
    border-radius: 18px;
  }
  .idc-stat-num { font-size: 24px; }
  .idc-stat-icon { width: 30px; height: 30px; font-size: 15px; border-radius: 10px; }
  .idc-stat-cta, .idc-stat-hint, .idc-stat-pill { display: none; }
  .idc-middle { grid-template-columns: 1fr; gap: 12px; }
  .idc-banner {
    min-height: 228px;
    padding: 8px;
    border-radius: 20px;
  }
  .idc-banner-slide { inset: 8px; border-radius: 14px; }
  .idc-banner-body {
    padding: 18px 16px;
    max-width: 100%;
  }
  .idc-banner-chip { margin-bottom: 10px; }
  .idc-banner h2 { font-size: 20px; }
  .idc-banner-desc {
    font-size: 12.5px;
    margin-top: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .idc-banner-actions { margin-top: 14px; width: 100%; }
  .idc-banner-btn { justify-content: center; flex: 1; }
  .idc-banner-dots { right: 16px; bottom: 14px; }
  .idc-account { padding: 16px; min-height: 0; border-radius: 20px; }
  .idc-quick { grid-template-columns: 1fr 1fr; gap: 10px; }
  .idc-quick-item { padding: 16px 12px; border-radius: 18px; }
  .idc-quick-corner { display: none; }

  .xc-pts-hero { padding: 20px 16px; border-radius: 18px; }
  .xc-pts-balance strong { font-size: 36px; }
  .xc-pts-hero-side { width: 100%; }
  .xc-pts-cash { width: 100%; justify-content: center; }
  .xc-pts-card { padding: 16px; border-radius: 16px; }

  body.xc-app .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.xc-app .table { min-width: 560px; }
  .xc-pts-tabs .table { min-width: 480px; }

  body.xc-app .modal .modal-dialog {
    margin: 12px auto;
    max-width: calc(100vw - 24px);
    width: calc(100vw - 24px);
  }
  body.xc-app .modal .modal-content { border-radius: 18px !important; }
  body.xc-app .modal .modal-header,
  body.xc-app .modal .modal-body,
  body.xc-app .modal .modal-footer { padding-left: 16px !important; padding-right: 16px !important; }

  body.xc-app .server_header_box { padding: 18px 16px !important; border-radius: 16px !important; }
  .xc-account-nav {
    margin: 0 -12px 12px;
    padding: 0 12px;
  }
}

.xc-ev, .xc-st {
  max-width: 920px;
  margin: 0 auto;
  padding: 8px 0 56px;
  color: #151716;
}
.xc-ev-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.xc-ev-kicker, .xc-st-kicker {
  display: block;
  margin-bottom: 6px;
  font-family: Georgia, "Noto Serif SC", serif;
  font-style: italic;
  font-size: 16px;
  color: rgba(28, 58, 43, .8);
}
.xc-ev-head h1, .xc-st-hero h1 {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 550;
  letter-spacing: -.03em;
}
.xc-ev-head h1 em {
  font-family: "Noto Serif SC", Georgia, serif;
  font-style: normal;
  font-weight: 400;
}
.xc-ev-lead {
  margin: 10px 0 0;
  max-width: 460px;
  font-size: 14px;
  line-height: 1.75;
  color: #6E7370;
}
.xc-ev-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.xc-ev-filter {
  border: 1px solid rgba(21,23,22,.055);
  background: #fff;
  color: #6E7370;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 12.5px;
}
.xc-ev-filter.is-on { background: #151716; color: #fff; border-color: #151716; }
.xc-ev-banner {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  border-radius: 28px;
  border: 1px solid rgba(21,23,22,.055);
  padding: 40px 44px;
  margin-bottom: 28px;
  background:
    linear-gradient(95deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.82) 48%, rgba(255,255,255,.2) 100%),
    linear-gradient(135deg, #E8F0E9, #F4EFE6 50%, #DCE8F2);
  box-shadow: 0 24px 64px -16px rgba(21,23,22,.08);
}
.xc-ev-banner-body { position: relative; z-index: 1; max-width: 520px; }
.xc-ev-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  margin-bottom: 16px;
}
.xc-ev-pill-coral { background: #FFF2F2; color: #EE6A6A; }
.xc-ev-dot {
  width: 6px; height: 6px; border-radius: 99px; background: #EE6A6A;
}
.xc-ev-banner h2 {
  margin: 0 0 12px;
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  line-height: 1.35;
}
.xc-ev-banner p { margin: 0 0 22px; font-size: 13.5px; line-height: 1.8; color: rgba(21,23,22,.75); }
.xc-ev-banner-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.xc-ev-btn, .xc-st-btn-ink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  background: #151716;
  color: #fff !important;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none !important;
  border: 0;
}
.xc-ev-btn:hover, .xc-st-btn-ink:hover { background: #1C3A2B; color: #fff !important; }
.xc-ev-code { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: rgba(28,58,43,.8); }
.xc-ev-perks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 48px;
}
.xc-ev-perk {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  border: 1px solid rgba(21,23,22,.055);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 2px 18px -4px rgba(21,23,22,.04);
  min-height: 260px;
}
.xc-ev-perk-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.xc-ev-ico {
  width: 44px; height: 44px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.xc-ev-ico-coral { background: #FFF2F2; color: #EE6A6A; }
.xc-ev-ico-sky { background: #F0F5FA; color: #334155; }
.xc-ev-ico-pine { background: #EFF5F1; color: #1C3A2B; }
.xc-ev-tag {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #F9F8F6;
  border: 1px solid rgba(21,23,22,.055);
  color: #6E7370;
}
.xc-ev-tag-sky { background: #F0F5FA; color: #475569; border: 0; }
.xc-ev-tag-pine { background: #EFF5F1; color: #1C3A2B; border: 0; }
.xc-ev-perk h3 { margin: 0 0 10px; font-size: 17px; font-weight: 550; }
.xc-ev-perk p { margin: 0; font-size: 13px; line-height: 1.75; color: #6E7370; }
.xc-ev-perk-foot {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px dashed rgba(21,23,22,.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: #9DA29E;
}
.xc-ev-perk-foot a { color: #1C3A2B; font-weight: 500; }
.xc-ev-mono { font-family: ui-monospace, Menlo, monospace; color: rgba(21,23,22,.7); }
.xc-ev-plans, .xc-ev-archive {
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(21,23,22,.055);
  border-radius: 24px;
  padding: 28px 32px;
  margin-bottom: 28px;
}
.xc-ev-plans-head, .xc-ev-archive-head, .xc-st-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.xc-ev-plans-head em, .xc-ev-archive-head em {
  font-family: Georgia, serif;
  font-style: italic;
  color: #9DA29E;
}
.xc-ev-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.xc-ev-plan {
  background: #fff;
  border: 1px solid rgba(21,23,22,.06);
  border-radius: 18px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
}
.xc-ev-plan.is-hot { border-color: rgba(238,106,106,.35); }
.xc-ev-badge {
  align-self: flex-start;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #F4F1ED;
  color: #6B5E52;
  margin-bottom: 8px;
}
.xc-ev-plan h3 { margin: 0; font-size: 15.5px; font-weight: 600; }
.xc-ev-plan p { margin: 6px 0 0; font-size: 12.5px; color: #6E7370; }
.xc-ev-price { display: flex; align-items: baseline; gap: 2px; margin: 12px 0 4px; }
.xc-ev-price em { font-style: normal; font-size: 14px; }
.xc-ev-price strong { font-size: 26px; letter-spacing: -.03em; }
.xc-ev-price small { margin-left: 4px; font-size: 12px; color: #6E7370; }
.xc-ev-plan ul { list-style: none; margin: 8px 0 14px; padding: 0; flex: 1; }
.xc-ev-plan li {
  font-size: 12.5px;
  color: #4A524C;
  padding: 5px 0 5px 12px;
  position: relative;
  border-bottom: 1px solid #F3F4F6;
}
.xc-ev-plan li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 5px; height: 5px;
  border-radius: 99px;
  background: #1C3A2B;
}
.xc-ev-plan a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  border-radius: 999px;
  background: #151716;
  color: #fff !important;
  font-size: 13px;
  text-decoration: none !important;
}
.xc-ev-plan.is-hot a { background: #EE6A6A; }
.xc-ev-archive-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid rgba(21,23,22,.05);
  font-size: 13px;
}
.xc-ev-archive-row:first-of-type { border-top: 0; }
.xc-ev-archive-row > div { display: flex; align-items: center; gap: 12px; }
.xc-ev-archive-row .xc-ev-mono { font-size: 11.5px; color: #9DA29E; }

.xc-st-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid rgba(21,23,22,.055);
  border-radius: 28px;
  padding: 36px 40px;
  margin-bottom: 28px;
  box-shadow: 0 24px 64px -16px rgba(21,23,22,.08);
}
.xc-st-live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #EFF5F1;
  color: #1C3A2B;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 18px;
}
.xc-st-ping {
  position: relative;
  width: 8px; height: 8px;
}
.xc-st-ping i {
  display: block;
  width: 8px; height: 8px;
  border-radius: 99px;
  background: #059669;
  box-shadow: 0 0 0 4px rgba(52,211,153,.25);
}
.xc-st-hero p { margin: 10px 0 0; font-size: 13.5px; color: #6E7370; }
.xc-st-hero p strong { font-family: ui-monospace, Menlo, monospace; color: #151716; font-weight: 500; }
.xc-st-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.xc-st-btn {
  padding: 10px 18px;
  border-radius: 999px;
  background: #F9F8F6;
  border: 1px solid rgba(21,23,22,.055);
  color: #151716;
  font-size: 13px;
  font-weight: 500;
}
.xc-st-btn.is-on { background: #EFF5F1; color: #1C3A2B; }
.xc-st-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}
.xc-st-metrics article {
  background: #fff;
  border: 1px solid rgba(21,23,22,.055);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 18px -4px rgba(21,23,22,.04);
}
.xc-st-label { font-size: 12.5px; color: #6E7370; margin-bottom: 4px; }
.xc-st-num {
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 32px;
  line-height: 1;
}
.xc-st-num small { font-family: inherit; font-size: 14px; color: #6E7370; }
.xc-st-ok { margin-top: 8px; font-size: 11.5px; color: #1C3A2B; }
.xc-st-muted { margin-top: 8px; font-size: 11.5px; color: #6E7370; }
.xc-st-ico {
  width: 44px; height: 44px; border-radius: 16px;
  background: #EFF5F1; color: #1C3A2B;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.xc-st-ico-sky { background: #F0F5FA; color: #334155; }
.xc-st-regions {
  background: #fff;
  border: 1px solid rgba(21,23,22,.055);
  border-radius: 28px;
  padding: 32px 36px;
  margin-bottom: 24px;
}
.xc-st-readout {
  font-size: 12px;
  color: #1C3A2B;
  background: #EFF5F1;
  padding: 4px 12px;
  border-radius: 999px;
}
.xc-st-region + .xc-st-region {
  border-top: 1px solid rgba(21,23,22,.04);
  margin-top: 22px;
}
.xc-st-region-head, .xc-st-region-name, .xc-st-region-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.xc-st-region-head { justify-content: space-between; margin-bottom: 12px; }
.xc-st-dot { width: 8px; height: 8px; border-radius: 99px; background: #10b981; }
.xc-st-region-name strong { font-size: 14.5px; font-weight: 550; }
.xc-st-region-name em {
  font-style: normal;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #F9F8F6;
  border: 1px solid rgba(21,23,22,.055);
  color: #6E7370;
}
.xc-st-region-meta { font-size: 12px; color: #6E7370; }
.xc-st-ms { font-family: ui-monospace, Menlo, monospace; color: #1C3A2B; }
.xc-st-mini {
  padding: 4px 12px;
  border-radius: 999px;
  background: #F9F8F6;
  border: 1px solid rgba(21,23,22,.055);
  font-size: 11.5px;
}
.xc-st-bars {
  display: grid;
  grid-template-columns: repeat(30, minmax(0, 1fr));
  gap: 4px;
}
.xc-st-bar {
  height: 24px;
  border-radius: 999px;
  background: rgba(5, 150, 105, .25);
  cursor: pointer;
  transition: transform .2s, background .2s;
}
.xc-st-bar:hover { background: #1C3A2B; transform: scaleY(1.1); }
.xc-st-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.xc-st-split section {
  background: #fff;
  border: 1px solid rgba(21,23,22,.055);
  border-radius: 26px;
  padding: 28px;
}
.xc-st-split h3, .xc-st-regions h2 { margin: 0 0 20px; font-size: 18px; font-weight: 550; }
.xc-st-svc { list-style: none; margin: 0; padding: 0; }
.xc-st-svc li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(21,23,22,.04);
  font-size: 13.5px;
}
.xc-st-svc li:last-child { border-bottom: 0; }
.xc-st-svc strong { display: block; font-weight: 550; }
.xc-st-svc span { display: block; margin-top: 2px; font-size: 12px; color: #9DA29E; }
.xc-st-svc em {
  font-style: normal;
  font-size: 12px;
  color: #1C3A2B;
  background: #EFF5F1;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.xc-st-log {
  position: relative;
  padding-left: 20px;
  border-left: 1px solid rgba(21,23,22,.08);
}
.xc-st-log > div { position: relative; margin-bottom: 20px; }
.xc-st-log > div:last-child { margin-bottom: 0; }
.xc-st-log i {
  position: absolute;
  left: -25px; top: 6px;
  width: 10px; height: 10px;
  border-radius: 99px;
  background: rgba(28,58,43,.5);
  box-shadow: 0 0 0 4px #fff;
}
.xc-st-log i.is-ok { background: #10b981; }
.xc-st-log i.is-warn { background: rgba(238,106,106,.7); }
.xc-st-log time { display: block; font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; color: #9DA29E; margin-bottom: 4px; }
.xc-st-log strong { display: block; font-size: 13.5px; font-weight: 550; }
.xc-st-log p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.65; color: #6E7370; }

@media (max-width: 1100px) {
  .xc-ev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .xc-ev-perks, .xc-st-metrics, .xc-st-split { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
  .xc-ev, .xc-st { padding: 4px 0 36px; }
  .xc-ev-banner { padding: 28px 22px; border-radius: 22px; }
  .xc-ev-perk, .xc-st-hero, .xc-st-regions { padding: 22px 18px; }
  .xc-ev-grid { grid-template-columns: 1fr; }
  .xc-st-bars { gap: 2px; }
}

@media (max-width: 575.98px) {
  .idc-banner-eyebrow { display: none; }
}

body.tf-login { background: #F9F8F6 !important; }
body.tf-login .page-content,
body.tf-login .xc-main { padding: 0 !important; margin: 0 !important; max-width: none !important; }
.xc-home-auth {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(21, 23, 22, .32);
  backdrop-filter: blur(10px);
}
.xc-home-auth.is-open { display: flex; }
.xc-home-auth-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #151716;
  font-size: 22px;
  line-height: 1;
  z-index: 2;
  cursor: pointer;
}
.xc-home-auth .tf-hero-block { display: none !important; }
.xc-home-auth .tf-shell {
  position: relative;
  width: min(1080px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 24px;
}

