.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 16, 34, 0.52);
  backdrop-filter: blur(4px);
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}

.auth-modal-overlay.open {
  display: flex;
}

.auth-modal {
  width: min(920px, 96vw);
  max-height: min(760px, 92vh);
  overflow: auto;
  background: #fdfefe;
  border: 1px solid #ccd8ec;
  border-radius: 18px;
  box-shadow: 0 22px 44px rgba(7, 16, 31, 0.24);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
}

.auth-modal-main {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
}

.auth-modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid #d4dfef;
  background: #ffffff;
  padding: 0.7rem 0.86rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.auth-modal-header h3 {
  margin: 0;
  font-family: "Outfit", "Noto Sans SC", sans-serif;
  font-size: 1rem;
  color: #1f3253;
}

.auth-modal-close {
  width: 30px;
  height: 30px;
  border: 1px solid #d4dfef;
  border-radius: 9px;
  background: #fff;
  color: #365780;
  font-weight: 700;
  cursor: pointer;
}

.auth-modal-body {
  padding: 0.82rem 0.86rem 0.95rem;
}

.auth-step {
  display: none;
  gap: 0.44rem;
}

.auth-step.active {
  display: grid;
}

.auth-note {
  border: 1px dashed #ccdaef;
  background: #f7fbff;
  color: #2f4e7d;
  border-radius: 10px;
  font-size: 0.78rem;
  line-height: 1.5;
  padding: 0.38rem 0.5rem;
}

.auth-field {
  display: grid;
  gap: 0.16rem;
}

.auth-field label {
  font-size: 0.76rem;
  color: #4f668a;
}

.auth-field input {
  width: 100%;
  border: 1px solid #cdd9ec;
  border-radius: 10px;
  padding: 0.44rem 0.5rem;
  font-size: 0.84rem;
  color: #233a5e;
}

.auth-inline {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.34rem;
}

.auth-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.34rem;
}

.auth-btn {
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.34rem 0.66rem;
  cursor: pointer;
  font-family: "Noto Sans SC", sans-serif;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.auth-btn.primary {
  color: #fff;
  background: #2636af;
  border-color: #1f2e94;
}

.auth-btn.secondary {
  color: #294c7a;
  background: #fff;
  border-color: #cddaea;
}

.auth-btn:disabled {
  opacity: 0.76;
  cursor: not-allowed;
}

.auth-btn.loading {
  position: relative;
  padding-left: 1.5rem;
}

.auth-btn.loading::before {
  content: "";
  position: absolute;
  left: 0.56rem;
  top: 50%;
  width: 0.66rem;
  height: 0.66rem;
  margin-top: -0.33rem;
  border-radius: 50%;
  border: 2px solid rgba(42, 75, 122, 0.24);
  border-top-color: #2d5b98;
  animation: authSpin 0.7s linear infinite;
}

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

.auth-switch {
  font-size: 0.78rem;
  color: #5b7091;
}

.auth-switch a {
  color: #8f2333;
  font-weight: 700;
  text-decoration: none;
}

.auth-result {
  min-height: 30px;
  border: 1px dashed #cdd9ec;
  border-radius: 10px;
  background: #f8fbff;
  color: #375986;
  font-size: 0.76rem;
  padding: 0.32rem 0.44rem;
}

.auth-side {
  border-left: 1px solid #d7e2f2;
  background: #f7fafd;
  padding: 0.86rem;
  display: grid;
  align-content: start;
  gap: 0.62rem;
}

.auth-side h4 {
  margin: 0;
  font-family: "Outfit", "Noto Sans SC", sans-serif;
  color: #20395e;
  font-size: 0.98rem;
}

.auth-side p {
  margin: 0;
  font-size: 0.8rem;
  color: #4f678a;
}

.auth-qr {
  border: 1px solid #d3deee;
  border-radius: 12px;
  background: #fff;
  padding: 0.48rem;
  display: grid;
  justify-items: center;
  gap: 0.3rem;
}

.auth-qr img {
  width: min(180px, 100%);
  height: auto;
  border-radius: 8px;
  border: 1px solid #e1e8f3;
  display: block;
}

.auth-qr figcaption {
  text-align: center;
  color: #516a8c;
  font-size: 0.74rem;
  line-height: 1.45;
}

.auth-toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1250;
  border: 1px solid #cddbee;
  border-radius: 12px;
  background: #ffffff;
  color: #264a77;
  font-size: 0.8rem;
  padding: 0.38rem 0.56rem;
  box-shadow: 0 14px 28px rgba(8, 17, 36, 0.18);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.auth-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.auth-entry-btn {
  appearance: none;
  border: 1px solid #1f3f72;
  border-radius: 999px;
  background: #ffffff;
  color: #1f3f72;
  font-size: 0.76rem;
  font-weight: 700;
  font-family: "Noto Sans SC", sans-serif;
  line-height: 1;
  padding: 0.3rem 0.66rem;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(23, 45, 86, 0.08);
  transition: box-shadow 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.auth-entry-btn:hover {
  border-color: #8f2333;
  color: #8f2333;
  box-shadow: 0 9px 18px rgba(30, 53, 93, 0.14);
}

.user-menu {
  position: relative;
}

.user-menu[hidden] {
  display: none !important;
}

.pay-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1260;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 16, 34, 0.56);
  backdrop-filter: blur(3px);
  padding: 1rem;
}

.pay-modal-overlay.open {
  display: flex;
}

.pay-modal {
  width: min(460px, 96vw);
  border: 1px solid #d2deef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(8, 17, 36, 0.24);
}

.pay-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #d6e0ef;
  padding: 0.66rem 0.78rem;
}

.pay-modal-header h3 {
  margin: 0;
  color: #1f3352;
  font-size: 0.95rem;
}

.pay-modal-body {
  display: grid;
  gap: 0.56rem;
  padding: 0.76rem;
}

.pay-order-meta p {
  margin: 0.12rem 0;
  font-size: 0.78rem;
  color: #4a6488;
}

.pay-order-meta p strong {
  font-size: 0.9rem;
  color: #1d3760;
}

.pay-order-meta .pay-amount {
  color: #a12539;
  font-size: 1rem;
  font-weight: 800;
}

.pay-discount-hint {
  color: #5a4ca0;
}

.pay-open-panel {
  border: 1px solid #d6deec;
  border-radius: 12px;
  background: #fbfdff;
  padding: 0.66rem;
  display: grid;
  gap: 0.34rem;
}

.pay-open-hint {
  color: #5a7090;
  font-size: 0.74rem;
  line-height: 1.45;
}

.pay-actions {
  display: flex;
  gap: 0.46rem;
  flex-wrap: wrap;
}

.plan-confirm-modal {
  width: min(500px, 96vw);
}

.sub-success-guide-modal {
  width: min(540px, 96vw);
  border-color: #b9cae5;
  box-shadow: 0 22px 48px rgba(8, 17, 36, 0.28);
}

.sub-success-guide-modal .pay-order-meta p strong {
  color: #0e356d;
}

.plan-origin-wrap {
  color: #6a7e9a;
}

.plan-origin {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  color: #8a9ab4;
}

.user-trigger {
  appearance: none;
  border: 1px solid #d4deee;
  border-radius: 999px;
  background: #f8fbff;
  color: #2a456b;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: "Noto Sans SC", sans-serif;
  line-height: 1;
  padding: 0.2rem 0.34rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
}

.user-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2a2fbc;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
}

.user-phone {
  display: none !important;
}

.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 140;
  min-width: 170px;
  border: 1px solid #d4deee;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(8, 17, 36, 0.16);
  padding: 0.28rem;
  display: none;
}

.user-menu.open .user-dropdown {
  display: grid;
}

.user-dropdown a,
.user-dropdown button {
  width: 100%;
  border: 0;
  background: transparent;
  color: #2b476e;
  text-decoration: none;
  text-align: left;
  font-size: 0.78rem;
  font-family: "Noto Sans SC", sans-serif;
  border-radius: 8px;
  padding: 0.3rem 0.42rem;
  cursor: pointer;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
  background: #f3f7ff;
}

body.auth-modal-open {
  overflow: hidden;
}

html.mobile-site-app,
body.mobile-site-app {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden !important;
  overscroll-behavior-x: none;
  background: #080e1c;
}

body.mobile-site-app {
  touch-action: pan-y;
}

body.mobile-site-app .container,
body.mobile-site-app main,
body.mobile-site-app section {
  max-width: 100vw;
}

html.mobile-console-app body.auth-modal-open,
body.mobile-console-app.auth-modal-open,
html.mobile-site-app body.auth-modal-open,
body.mobile-site-app.auth-modal-open {
  overflow: hidden !important;
  position: fixed;
  inset: 0;
  width: 100%;
  height: var(--dasheng-app-viewport-h, 100dvh);
}

body.mobile-console-app .auth-modal-overlay,
body.mobile-site-app .auth-modal-overlay {
  align-items: stretch;
  justify-content: center;
  padding:
    max(12px, env(safe-area-inset-top))
    max(10px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom))
    max(10px, env(safe-area-inset-left));
  min-height: var(--dasheng-app-viewport-h, 100dvh);
  background:
    radial-gradient(circle at 12% 4%, rgba(255, 64, 88, .14), transparent 26%),
    linear-gradient(180deg, rgba(7, 13, 27, .92), rgba(7, 13, 27, .98));
  backdrop-filter: blur(10px);
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

body.mobile-console-app .auth-modal,
body.mobile-site-app .auth-modal {
  width: 100%;
  max-width: 440px;
  height: min(100%, var(--dasheng-app-viewport-h, 100dvh));
  max-height: none;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(16, 27, 51, .98), rgba(10, 18, 34, .99));
  border-color: rgba(89, 116, 172, .58);
  color: #eef4ff;
  box-shadow: 0 24px 62px rgba(0, 0, 0, .44);
}

body.mobile-console-app .auth-modal-main,
body.mobile-site-app .auth-modal-main {
  min-height: 0;
  overflow: hidden;
}

body.mobile-console-app .auth-modal-header,
body.mobile-site-app .auth-modal-header {
  flex: 0 0 auto;
  background: rgba(10, 18, 34, .96);
  border-bottom-color: rgba(89, 116, 172, .38);
  padding: 14px 14px 12px;
}

body.mobile-console-app .auth-modal-header h3,
body.mobile-site-app .auth-modal-header h3 {
  color: #f7fbff;
  font-size: 18px;
}

body.mobile-console-app .auth-modal-close,
body.mobile-site-app .auth-modal-close {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  border-color: rgba(255, 64, 88, .42);
  background: rgba(255, 64, 88, .18);
  color: #fff;
  font-size: 18px;
}

body.mobile-console-app .auth-modal-body,
body.mobile-site-app .auth-modal-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 14px 14px max(18px, env(safe-area-inset-bottom));
}

body.mobile-console-app .auth-step,
body.mobile-site-app .auth-step {
  gap: 10px;
}

body.mobile-console-app .auth-note,
body.mobile-console-app .auth-result,
body.mobile-site-app .auth-note,
body.mobile-site-app .auth-result {
  background: rgba(255, 64, 88, .08);
  border-color: rgba(255, 64, 88, .36);
  color: #d8e4ff;
}

body.mobile-console-app .auth-field label,
body.mobile-console-app .auth-switch,
body.mobile-console-app .auth-side p,
body.mobile-console-app .auth-qr figcaption,
body.mobile-site-app .auth-field label,
body.mobile-site-app .auth-switch,
body.mobile-site-app .auth-side p,
body.mobile-site-app .auth-qr figcaption {
  color: #aebbd6;
}

body.mobile-console-app .auth-field input,
body.mobile-site-app .auth-field input {
  min-height: 40px;
  border-radius: 12px;
  border-color: rgba(89, 116, 172, .55);
  background: rgba(3, 10, 22, .88);
  color: #f7fbff;
  font-size: 16px;
}

body.mobile-console-app .auth-inline,
body.mobile-site-app .auth-inline {
  grid-template-columns: minmax(0, 1fr) auto;
}

body.mobile-console-app .auth-btn,
body.mobile-site-app .auth-btn {
  min-height: 38px;
  border-radius: 12px;
}

body.mobile-console-app .auth-btn.primary,
body.mobile-site-app .auth-btn.primary {
  background: linear-gradient(135deg, #ff4058, #9f1024);
  border-color: rgba(255, 64, 88, .58);
}

body.mobile-console-app .auth-side,
body.mobile-site-app .auth-side {
  display: none;
}

body.mobile-console-app .auth-side h4,
body.mobile-site-app .auth-side h4 {
  color: #f7fbff;
}

body.mobile-console-app .auth-qr,
body.mobile-site-app .auth-qr {
  background: rgba(3, 10, 22, .62);
  border-color: rgba(89, 116, 172, .46);
}

body.mobile-console-app .auth-qr img,
body.mobile-site-app .auth-qr img {
  width: min(260px, 78vw);
  max-height: 42vh;
  object-fit: contain;
}

body.agent-portal-open {
  overflow: hidden;
}

.agent-portal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1240;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(circle at top left, rgba(86, 121, 227, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(6, 14, 33, 0.82), rgba(8, 14, 28, 0.9));
  backdrop-filter: blur(12px);
}

.agent-portal-overlay.open {
  display: flex;
}

.agent-portal {
  width: min(1180px, 96vw);
  max-height: min(860px, calc(100vh - 2rem));
  overflow: hidden;
  border: 1px solid rgba(198, 214, 245, 0.42);
  border-radius: 28px;
  background:
    linear-gradient(155deg, rgba(13, 24, 48, 0.96), rgba(10, 17, 34, 0.98)),
    #0c1427;
  box-shadow:
    0 36px 80px rgba(3, 9, 21, 0.54),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  color: #eef4ff;
}

.agent-portal-shell {
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  height: min(720px, calc(100vh - 2rem));
  min-height: 0;
}

.agent-portal-aside {
  position: relative;
  overflow-y: auto;
  min-height: 0;
  padding: 1.4rem 1.25rem 1.3rem;
  border-right: 1px solid rgba(180, 201, 239, 0.14);
  background:
    radial-gradient(circle at top left, rgba(104, 142, 255, 0.24), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
}

.agent-portal-aside::after {
  content: "";
  position: absolute;
  inset: auto -30px -42px auto;
  width: 220px;
  aspect-ratio: 1 / 1;
  background: url("/assets/openclaw/lobster-logo.svg") no-repeat center / contain;
  opacity: 0.12;
  filter: saturate(1.18);
  pointer-events: none;
}

.agent-portal-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(196, 214, 246, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #d7e5ff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.22rem 0.56rem;
}

.agent-portal-aside h3 {
  margin: 1rem 0 0.48rem;
  font-family: "Outfit", "Noto Sans SC", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
}

.agent-portal-aside p {
  margin: 0;
  color: #adc0e4;
  font-size: 0.88rem;
  line-height: 1.72;
}

.agent-portal-meta {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}

.agent-portal-meta div {
  border: 1px solid rgba(198, 214, 245, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.72rem 0.78rem;
}

.agent-portal-meta strong {
  display: block;
  color: #f7fbff;
  font-size: 0.82rem;
  margin-bottom: 0.2rem;
}

.agent-portal-meta span {
  display: block;
  color: #a4b7db;
  font-size: 0.77rem;
  line-height: 1.6;
}

.agent-portal-console-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  margin-top: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(97, 143, 255, 0.62);
  background: linear-gradient(135deg, rgba(35, 79, 168, 0.96), rgba(19, 53, 122, 0.98));
  color: #eff5ff;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 0.82rem 0.96rem;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 0 0 3px rgba(63, 120, 255, 0.18),
    0 18px 34px rgba(8, 24, 57, 0.38);
}

.agent-portal-console-link span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.agent-portal-main {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr;
}

.agent-portal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.12rem 1.15rem 0.92rem;
  border-bottom: 1px solid rgba(196, 214, 246, 0.12);
}

.agent-portal-header h4 {
  margin: 0;
  color: #f3f7ff;
  font-family: "Outfit", "Noto Sans SC", sans-serif;
  font-size: 1.16rem;
  letter-spacing: 0.02em;
}

.agent-portal-header p {
  margin: 0.28rem 0 0;
  color: #9fb4da;
  font-size: 0.82rem;
  line-height: 1.65;
}

.agent-portal-close {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(196, 214, 246, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: #d7e5ff;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

.agent-portal-body {
  padding: 1rem 1.15rem 1.15rem;
  overflow: auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

.agent-portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 0.92rem;
}

.agent-site-card {
  position: relative;
  min-height: 244px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(192, 209, 242, 0.22);
  background: #101b35;
  color: #eef5ff;
  text-decoration: none;
  isolation: isolate;
  box-shadow: 0 24px 36px rgba(4, 10, 24, 0.28), inset 0 0 34px rgba(88, 146, 255, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.agent-site-card:hover {
  transform: translateY(-3px);
  border-color: rgba(138, 172, 245, 0.42);
  box-shadow: 0 30px 44px rgba(4, 10, 24, 0.38);
}

.agent-site-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.4) contrast(1.16) brightness(1.12);
  transform: scale(1.46);
  transform-origin: center;
  will-change: transform;
  animation: agentCardPanA 5.8s ease-in-out infinite alternate;
}

.agent-site-card:nth-child(2) > img {
  animation-name: agentCardPanB;
  animation-duration: 6.4s;
}

.agent-site-card:nth-child(3) > img {
  animation-name: agentCardPanC;
  animation-duration: 6.1s;
}

.agent-site-card:nth-child(4) > img {
  animation-name: agentCardPanD;
  animation-duration: 6.7s;
}

.agent-site-card:nth-child(5) > img {
  animation-name: agentCardPanE;
  animation-duration: 6s;
}

@keyframes agentCardPanA {
  0% { transform: scale(1.42) translate3d(-8%, -3%, 0) rotate(-0.4deg); }
  48% { transform: scale(1.6) translate3d(-21%, -15%, 0) rotate(0.65deg); }
  100% { transform: scale(1.5) translate3d(18%, 14%, 0) rotate(-0.25deg); }
}

@keyframes agentCardPanB {
  0% { transform: scale(1.42) translate3d(3%, -8%, 0) rotate(0.35deg); }
  52% { transform: scale(1.59) translate3d(22%, -16%, 0) rotate(-0.55deg); }
  100% { transform: scale(1.5) translate3d(-18%, 14%, 0) rotate(0.22deg); }
}

@keyframes agentCardPanC {
  0% { transform: scale(1.43) translate3d(4%, 1%, 0) rotate(-0.3deg); }
  44% { transform: scale(1.61) translate3d(-20%, 18%, 0) rotate(0.5deg); }
  100% { transform: scale(1.5) translate3d(20%, -17%, 0) rotate(-0.2deg); }
}

@keyframes agentCardPanD {
  0% { transform: scale(1.43) translate3d(-4%, 5%, 0) rotate(0.28deg); }
  50% { transform: scale(1.6) translate3d(21%, 19%, 0) rotate(-0.48deg); }
  100% { transform: scale(1.51) translate3d(-21%, -15%, 0) rotate(0.2deg); }
}

@keyframes agentCardPanE {
  0% { transform: scale(1.43) translate3d(1%, 5%, 0) rotate(-0.25deg); }
  46% { transform: scale(1.61) translate3d(-22%, 17%, 0) rotate(0.55deg); }
  100% { transform: scale(1.5) translate3d(19%, -18%, 0) rotate(-0.18deg); }
}

.agent-site-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 64, 64, 0.18), transparent 28%),
    radial-gradient(circle at 88% 24%, rgba(54, 123, 255, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(8, 13, 28, 0.02), rgba(8, 13, 28, 0.1)),
    linear-gradient(145deg, rgba(14, 25, 50, 0.02), rgba(11, 18, 33, 0.34) 78%);
  background-size: 140% 140%, 150% 150%, 100% 100%, 100% 100%;
  animation: agentCardOverlayDrift 3.8s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes agentCardOverlayDrift {
  0% { opacity: 1; transform: translate3d(-2%, 0, 0); background-position: 0% 0%, 100% 10%, 0 0, 0 0; }
  100% { opacity: 0.9; transform: translate3d(2%, -4%, 0); background-position: 100% 70%, 0% 90%, 0 0, 0 0; }
}

.agent-site-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.18) 42%, transparent 60%);
  background-size: 260% 100%;
  animation: agentCardSheen 3.8s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes agentCardSheen {
  0% { background-position: 140% 0; }
  100% { background-position: -120% 0; }
}

.agent-site-content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: space-between;
  min-height: 100%;
  padding: 1rem;
}

.agent-site-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.agent-site-avatar {
  flex: 0 0 auto;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.56);
  box-shadow: 0 12px 24px rgba(5, 10, 24, 0.28);
}

.agent-site-avatar img {
  position: static;
  width: 100%;
  height: 100%;
  display: block;
  filter: none;
  animation: none;
  transform: none;
}

.agent-site-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  border-radius: 999px;
  padding: 0.26rem 0.54rem;
  background: rgba(8, 14, 28, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #eff5ff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(98, 152, 255, 0.22), 0 0 12px rgba(244, 93, 93, 0.16);
}

.agent-site-badge::before {
  content: "";
  width: 0.44rem;
  height: 0.44rem;
  border-radius: 50%;
  background: #89b5ff;
  box-shadow: 0 0 0 6px rgba(137, 181, 255, 0.14);
}

.agent-site-bottom {
  display: grid;
  justify-items: start;
}

.agent-site-bottom h5 {
  margin: 0;
  font-family: "Outfit", "Noto Sans SC", sans-serif;
  font-size: 1.56rem;
  font-weight: 900;
  line-height: 1.06;
  color: #5f000d;
  border: 1px solid rgba(95, 0, 13, 0.34);
  border-radius: 14px;
  background: rgba(255, 244, 241, 0.98);
  padding: 0.26rem 0.56rem;
  box-shadow: 0 12px 28px rgba(95, 0, 13, 0.18);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.74),
    0 0 16px rgba(95, 0, 13, 0.2);
}

.agent-site-bottom p {
  margin: 0.58rem 0 0;
  color: #043179;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.64;
  max-width: 28ch;
  border: 1px solid rgba(4, 49, 121, 0.3);
  border-radius: 14px;
  background: rgba(232, 243, 255, 0.98);
  padding: 0.48rem 0.58rem;
  box-shadow: 0 12px 26px rgba(4, 49, 121, 0.16);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

.agent-site-host {
  margin-top: 0.76rem;
  color: rgba(214, 228, 251, 0.88);
  font-size: 0.72rem;
  font-family: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  letter-spacing: 0.01em;
}

@media (max-width: 900px) {
  .auth-modal {
    grid-template-columns: 1fr;
  }

  .auth-side {
    border-left: 0;
    border-top: 1px solid #d7e2f2;
  }

  .agent-portal-shell {
    grid-template-columns: 1fr;
  }

  .agent-portal-aside {
    border-right: 0;
    border-bottom: 1px solid rgba(180, 201, 239, 0.14);
  }

  .agent-portal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .agent-portal-overlay {
    padding: 0.68rem;
  }

  .agent-portal {
    width: 100%;
    border-radius: 24px;
  }

  .agent-portal-aside,
  .agent-portal-header,
  .agent-portal-body {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .agent-site-card {
    min-height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .agent-site-card > img {
    animation-duration: 18s;
  }
}

/* 2026-05 modal dark-theme recolor: replace purple accents with red energy. */
html[data-site-theme="dark"] .auth-overlay,
html[data-site-theme="dark"] .agent-portal-overlay,
html[data-site-theme="dark"] .pay-modal-overlay {
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 55, 74, 0.18), transparent 34%),
    radial-gradient(circle at 86% 18%, rgba(168, 24, 42, 0.16), transparent 32%),
    linear-gradient(135deg, rgba(5, 8, 18, 0.88), rgba(13, 8, 14, 0.94)) !important;
}

html[data-site-theme="dark"] .auth-modal,
html[data-site-theme="dark"] .agent-portal,
html[data-site-theme="dark"] .pay-modal,
html[data-site-theme="dark"] .plan-confirm-modal,
html[data-site-theme="dark"] .sub-success-guide-modal {
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 64, 82, 0.14), transparent 23rem),
    radial-gradient(circle at 92% 12%, rgba(211, 38, 58, 0.12), transparent 25rem),
    linear-gradient(155deg, rgba(16, 22, 36, 0.98), rgba(9, 12, 22, 0.99)) !important;
  border-color: rgba(255, 78, 96, 0.3) !important;
  color: #f4edf0 !important;
  box-shadow:
    0 36px 80px rgba(3, 6, 14, 0.58),
    0 0 0 1px rgba(255, 104, 120, 0.08) inset,
    0 0 48px rgba(190, 24, 45, 0.16) !important;
}

html[data-site-theme="dark"] .auth-panel,
html[data-site-theme="dark"] .auth-side,
html[data-site-theme="dark"] .agent-portal-aside,
html[data-site-theme="dark"] .agent-portal-header,
html[data-site-theme="dark"] .agent-portal-body,
html[data-site-theme="dark"] .pay-modal-header,
html[data-site-theme="dark"] .pay-modal-body,
html[data-site-theme="dark"] .pay-open-panel,
html[data-site-theme="dark"] .user-dropdown {
  background: rgba(10, 15, 27, 0.72) !important;
  border-color: rgba(255, 78, 96, 0.18) !important;
  color: #f4edf0 !important;
}

html[data-site-theme="dark"] .auth-modal h1,
html[data-site-theme="dark"] .auth-modal h2,
html[data-site-theme="dark"] .auth-modal h3,
html[data-site-theme="dark"] .agent-portal h1,
html[data-site-theme="dark"] .agent-portal h2,
html[data-site-theme="dark"] .agent-portal h3,
html[data-site-theme="dark"] .pay-modal h3,
html[data-site-theme="dark"] .pay-order-meta p strong,
html[data-site-theme="dark"] .sub-success-guide-modal .pay-order-meta p strong {
  color: #fff2f4 !important;
}

html[data-site-theme="dark"] .auth-modal p,
html[data-site-theme="dark"] .agent-portal p,
html[data-site-theme="dark"] .pay-order-meta p,
html[data-site-theme="dark"] .pay-open-hint,
html[data-site-theme="dark"] .plan-origin-wrap,
html[data-site-theme="dark"] .agent-site-host {
  color: #d9b9c1 !important;
}

html[data-site-theme="dark"] .pay-discount-hint,
html[data-site-theme="dark"] .pay-amount,
html[data-site-theme="dark"] .agent-site-badge,
html[data-site-theme="dark"] .agent-portal a,
html[data-site-theme="dark"] .auth-modal a {
  color: #ff6f83 !important;
}

html[data-site-theme="dark"] .auth-entry-btn,
html[data-site-theme="dark"] .user-trigger,
html[data-site-theme="dark"] .pay-actions button,
html[data-site-theme="dark"] .pay-actions a,
html[data-site-theme="dark"] .agent-portal button,
html[data-site-theme="dark"] .auth-modal button:not(.auth-close) {
  border-color: rgba(255, 78, 96, 0.44) !important;
  background:
    linear-gradient(135deg, rgba(255, 79, 102, 0.18), rgba(142, 16, 34, 0.28)) !important;
  color: #ffe8ec !important;
  box-shadow: 0 12px 28px rgba(142, 16, 34, 0.22) !important;
}

html[data-site-theme="dark"] .auth-entry-btn:hover,
html[data-site-theme="dark"] .pay-actions button:hover,
html[data-site-theme="dark"] .pay-actions a:hover,
html[data-site-theme="dark"] .agent-portal button:hover,
html[data-site-theme="dark"] .auth-modal button:not(.auth-close):hover {
  border-color: rgba(255, 127, 142, 0.7) !important;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 177, 185, 0.18), transparent 38%),
    linear-gradient(135deg, rgba(255, 79, 102, 0.28), rgba(166, 20, 42, 0.42)) !important;
}

html[data-site-theme="dark"] .user-avatar,
html[data-site-theme="dark"] .agent-site-badge::before {
  background: #ff4f66 !important;
  box-shadow: 0 0 0 6px rgba(255, 79, 102, 0.16), 0 0 18px rgba(255, 79, 102, 0.42) !important;
}

html[data-site-theme="dark"] .agent-site-card {
  border-color: rgba(255, 79, 102, 0.28) !important;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.42),
    0 0 32px rgba(184, 24, 43, 0.14) !important;
}

html[data-site-theme="dark"] .agent-site-card::before {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 64, 64, 0.24), transparent 28%),
    radial-gradient(circle at 88% 24%, rgba(180, 24, 42, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(8, 13, 28, 0.08), rgba(8, 13, 28, 0.18)),
    linear-gradient(145deg, rgba(14, 25, 50, 0.02), rgba(42, 9, 17, 0.4) 78%) !important;
}

html[data-site-theme="dark"] .agent-site-bottom h5 {
  color: #ffecef !important;
  border-color: rgba(255, 79, 102, 0.38) !important;
  background: rgba(112, 12, 28, 0.82) !important;
  text-shadow: 0 0 18px rgba(255, 79, 102, 0.28) !important;
}

html[data-site-theme="dark"] .agent-site-bottom p {
  color: #ffe0e5 !important;
  border-color: rgba(255, 79, 102, 0.3) !important;
  background: rgba(20, 12, 20, 0.86) !important;
  text-shadow: none !important;
}
