/* ==========================================================================
   Activation Center (suzhe.ai/activate serenity), Order Lookup, 2FA, API & Chat
   ========================================================================== */

/* ---------- Centered Two-Tone Page Header ---------- */
.center-hero {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 28px;
}

.center-hero-title {
  margin: 0;
  font-size: clamp(32px, 4.4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink-primary);
}

.center-hero-sub {
  margin: 4px 0 0;
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--ink-muted);
}

.act-tool-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.act-pill-query {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: var(--r-pill);
  border: none;
  background: var(--bg-pill);
  color: var(--ink-primary);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.16s ease;
}

.act-pill-query:hover,
.act-pill-query.is-active {
  background: var(--ink-primary);
  color: #ffffff;
}

.act-status-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--ink-muted);
}

.act-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}

.act-secondary-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 2px;
}

.act-text-tab {
  border: none;
  background: transparent;
  padding: 2px 0;
  font-size: 13px;
  color: var(--ink-muted);
}

.act-text-tab:hover,
.act-text-tab.is-active {
  color: var(--blue);
  font-weight: 600;
}

/* ---------- Icon Product Selector Strip (suzhe.ai/activate signature) ---------- */
.act-icon-strip {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 4px 20px;
  margin: 0 auto 8px;
  max-width: 780px;
  scrollbar-width: none;
}

.act-icon-strip::-webkit-scrollbar {
  display: none;
}

.act-icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  padding: 14px 12px;
  border-radius: var(--r-md);
  border: none;
  background: transparent;
  color: var(--ink-primary);
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s var(--ease);
}

.act-icon-card:hover {
  background: rgba(255, 255, 255, 0.65);
}

.act-icon-card.is-active {
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.act-icon-card img {
  width: 46px;
  height: 46px;
  margin-bottom: 8px;
  object-fit: contain;
}

.act-icon-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-primary);
}

.act-icon-sub {
  font-size: 11px;
  color: var(--ink-light);
  margin-top: 1px;
}

/* ---------- Clean White Surface Card ---------- */
.surface-card {
  max-width: 760px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: var(--r-xl);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.surface-card-wide {
  max-width: 960px;
}

.act-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line-light);
}

.act-card-head img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.act-card-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.act-card-desc {
  margin: 3px 0 0;
  font-size: 13.5px;
  color: var(--ink-muted);
}

.step-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 12px;
}

.step-heading-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-primary);
}

.step-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-page);
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.step-block {
  margin-bottom: 26px;
}

.step-block:last-child {
  margin-bottom: 0;
}

.sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.sample-link {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 12px;
  color: var(--blue);
}

.sample-link:hover {
  text-decoration: underline;
}

/* ---------- Progress Bar (CSP-safe classes) ---------- */
.progress-track {
  width: 100%;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--bg-pill);
  overflow: hidden;
  margin: 14px 0 18px;
}

.progress-fill {
  height: 100%;
  border-radius: var(--r-pill);
  background: var(--blue);
  transition: width 0.35s var(--ease);
}

.p-10 { width: 10%; }
.p-25 { width: 25%; }
.p-45 { width: 45%; }
.p-65 { width: 65%; }
.p-85 { width: 85%; }
.p-100 { width: 100%; background: var(--green); }

.step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.step-item {
  padding: 12px;
  border-radius: var(--r-sm);
  background: var(--bg-page);
}

.step-item.is-done {
  background: var(--green-soft);
}

.step-item.is-active {
  box-shadow: inset 0 0 0 1.5px var(--blue);
  background: #ffffff;
}

.step-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-primary);
}

.step-item-desc {
  font-size: 11.5px;
  color: var(--ink-muted);
  margin-top: 3px;
}

/* ---------- SMS Panel ---------- */
.sms-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 20px 22px;
  border-radius: var(--r-md);
  background: #141416;
  color: #f5f5f7;
  margin: 14px 0;
}

.sms-phone {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.sms-sub {
  font-size: 12px;
  color: #a1a1a6;
  margin-top: 3px;
}

.sms-otp-banner {
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: var(--green-soft);
  color: #0b5d34;
  margin-top: 12px;
}

.sms-otp-code {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 6px 0;
}

/* ---------- Batch Captcha ---------- */
.captcha-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.captcha-canvas {
  width: 168px;
  height: 48px;
  border-radius: var(--r-sm);
  background: #141416;
  display: block;
}

/* ---------- Order Lookup ---------- */
.order-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}

.order-item {
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: var(--bg-page);
}

.order-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 14px;
}

.order-item-meta {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.status-txt-ok {
  color: var(--green);
  font-size: 12.5px;
  font-weight: 600;
}

.status-txt-warn {
  color: var(--amber-ink);
  font-size: 12.5px;
  font-weight: 600;
}

/* ---------- Local 2FA ---------- */
.totp-stage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px 26px;
  border-radius: var(--r-lg);
  background: #141416;
  color: #ffffff;
  margin: 16px 0;
}

.totp-code {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #ffffff;
}

.totp-meta {
  font-size: 12.5px;
  color: #a1a1a6;
  margin-top: 4px;
}

/* ---------- API Code Block ---------- */
.code-pre {
  background: #141416;
  color: #e5e5ea;
  border-radius: var(--r-md);
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.65;
  overflow-x: auto;
  margin: 8px 0 18px;
  white-space: pre;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

/* ---------- Quiet Floating Support Trigger & Chat Window ---------- */
.support-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 75;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  color: var(--ink-primary);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease;
}

.support-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.support-window {
  position: fixed;
  right: 22px;
  bottom: 76px;
  z-index: 80;
  width: 368px;
  max-width: calc(100vw - 24px);
  height: 500px;
  max-height: calc(100vh - 100px);
  background: #ffffff;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-light);
  box-shadow: var(--shadow-modal);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.support-head {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.support-head-title {
  font-size: 15px;
  font-weight: 600;
}

.support-head-sub {
  font-size: 11.5px;
  color: var(--green);
}

.support-ctx {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-light);
  background: var(--bg-page);
}

.support-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bubble {
  max-width: 84%;
  padding: 10px 13px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
}

.bubble-agent {
  align-self: flex-start;
  background: var(--bg-page);
  color: var(--ink-primary);
}

.bubble-user {
  align-self: flex-end;
  background: var(--blue);
  color: #ffffff;
}

.bubble-time {
  display: block;
  font-size: 10px;
  opacity: 0.65;
  margin-top: 4px;
}

.support-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 14px 4px;
  border-top: 1px solid var(--line-light);
}

.chip-btn {
  padding: 4px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-input);
  background: #ffffff;
  font-size: 11.5px;
  color: var(--ink-secondary);
}

.chip-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.support-form {
  display: flex;
  gap: 8px;
  padding: 10px 14px 14px;
}

/* ---------- Toast (Non-blocking, bottom-center single pill) ---------- */
.toast-stack {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: rgba(29, 29, 31, 0.92);
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.toast-success {
  background: rgba(0, 128, 64, 0.94);
}

.toast-warn {
  background: rgba(154, 92, 0, 0.94);
}

.toast-error {
  background: rgba(201, 42, 42, 0.94);
}

.receipt-box {
  border: 1px solid var(--line-input);
  border-radius: var(--r-md);
  padding: 20px;
  margin-top: 16px;
}

.receipt-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  font-size: 13px;
  margin: 12px 0;
}

@media (max-width: 780px) {
  .surface-card {
    padding: 22px 18px;
  }

  .step-grid,
  .two-col,
  .receipt-meta {
    grid-template-columns: 1fr;
  }

  .act-icon-strip {
    justify-content: flex-start;
  }

  .support-fab {
    right: 14px;
    bottom: 14px;
  }

  .support-window {
    right: 12px;
    bottom: 66px;
  }
}
