:root {
  --bg: #f6f8fc;
  --panel: #ffffff;
  --panel-soft: #f2f5fb;
  --panel-soft-strong: #eef3fb;
  --panel-deep: #0f1728;
  --panel-deep-soft: #18233c;
  --line: rgba(19, 33, 68, 0.08);
  --text: #171c26;
  --muted: #707b90;
  --muted-soft: #95a1b6;
  --primary: #1f6dd7;
  --primary-deep: #1259bc;
  --primary-soft: #e8f1ff;
  --success: #1d6fd4;
  --danger: #da5a5a;
  --shadow-soft: 0 24px 80px rgba(17, 40, 84, 0.08);
  --shadow-card: 0 18px 40px rgba(19, 33, 68, 0.08);
  --radius-xl: 34px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Aptos", "Segoe UI Variable", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top center, rgba(31, 109, 215, 0.04), transparent 34%),
    linear-gradient(180deg, #fbfcff 0%, var(--bg) 100%);
  color: var(--text);
}

body.is-support-modal-open,
body.is-setup-modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

code {
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

.page-shell {
  width: min(1240px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 0 0 40px;
}

.topbar {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(19, 33, 68, 0.04);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-avatar {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(17, 40, 84, 0.12);
}

.brand-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #171c26;
}

.top-actions,
.footer-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.top-text,
.footer-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--primary);
}

.action-pill {
  min-height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary), var(--primary-deep));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(31, 109, 215, 0.22);
}

.mobile-header-actions,
.mobile-feature-list,
.mobile-success-hero,
.mobile-tabbar {
  display: none;
}

.mobile-circle-button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.mobile-circle-button svg,
.mobile-tab svg,
.mobile-feature-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.mobile-feature-list,
.mobile-feature-copy p,
.mobile-section-label {
  margin: 0;
}

.mobile-feature-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.mobile-feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
}

.mobile-feature-icon.is-blue {
  color: #1f6dd7;
  background: #e6efff;
}

.mobile-feature-icon.is-slate {
  color: #44526b;
  background: #edf2f8;
}

.mobile-feature-icon.is-peach {
  color: #d17b4d;
  background: #ffe8de;
}

.mobile-feature-copy strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.mobile-feature-copy p {
  margin-top: 4px;
  color: #70809a;
  font-size: 13px;
  line-height: 1.55;
}

.mobile-section-label {
  color: #9aa7bc;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
}

.mobile-success-ring {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #e8f1ff;
  display: grid;
  place-items: center;
}

.mobile-success-core {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(180deg, #2f87ff, #1f6dd7);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 16px 26px rgba(31, 109, 215, 0.22);
}

.mobile-success-core svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.mobile-tab {
  color: inherit;
  text-decoration: none;
}

.support-modal,
.setup-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 120;
  padding: 20px 16px;
}

.support-modal[hidden],
.setup-modal[hidden] {
  display: none !important;
}

.support-modal-backdrop,
.setup-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 40, 0.48);
  backdrop-filter: blur(8px);
}

.support-modal-card {
  position: relative;
  width: min(calc(100vw - 32px), 360px);
  padding: 22px 20px 18px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 56px rgba(18, 36, 72, 0.2);
  z-index: 1;
}

.setup-modal-card {
  position: relative;
  width: min(calc(100vw - 32px), 520px);
  padding: 24px 22px 22px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(246, 250, 255, 0.98));
  box-shadow: 0 34px 64px rgba(18, 36, 72, 0.22);
  z-index: 1;
}

.support-modal-close,
.setup-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f2f5fa;
  color: #6f7d93;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.support-modal-close svg,
.setup-modal-close svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.support-modal-kicker,
.setup-modal-kicker {
  margin: 0;
  color: #96a3b8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.support-modal-card h3,
.setup-modal-card h3 {
  margin: 10px 0 0;
  font-size: 24px;
  letter-spacing: -0.05em;
}

.support-modal-text,
.setup-modal-text {
  margin: 12px 0 0;
  color: #607089;
  font-size: 15px;
  line-height: 1.7;
  word-break: break-all;
}

.setup-modal-text.is-soft {
  color: #7b88a0;
  font-size: 14px;
  line-height: 1.8;
}

.setup-device-row {
  margin-top: 12px;
  display: flex;
  align-items: center;
}

.setup-device-badge {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #edf4ff;
  color: #1f6dd7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  gap: 8px;
}

.setup-device-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.setup-device-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.setup-device-hint {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(241, 182, 70, 0.12);
  color: #92610a;
  font-size: 13px;
  line-height: 1.7;
  font-weight: 700;
}

.setup-command-box {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #eef4ff 0%, #f6f9ff 100%);
  border: 1px solid rgba(63, 119, 230, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.setup-command-box code {
  display: block;
  color: #1757b8;
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-all;
}

.support-modal-action {
  width: 100%;
  min-height: 48px;
  margin-top: 18px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(90deg, #2e7cf3, #1f6dd7 56%, #2f87ff);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 16px 24px rgba(31, 109, 215, 0.2);
}

.support-modal-action.is-copied {
  background: linear-gradient(90deg, #20b765, #179a55 56%, #31c874);
  box-shadow: 0 16px 24px rgba(23, 166, 93, 0.22);
}

.support-modal-secondary {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 16px;
  background: #edf3ff;
  color: #1f6dd7;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.support-modal-secondary:hover {
  background: #e3ecff;
  transform: translateY(-1px);
}

.support-modal-secondary.is-copied {
  background: rgba(28, 179, 98, 0.12);
  color: #179a55;
}

.setup-modal-actions {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.main-stage {
  padding: 48px 0 24px;
}

.screen[hidden] {
  display: none !important;
}

.landing-view,
.result-view {
  animation: page-enter 240ms ease;
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-block,
.success-hero {
  display: grid;
  justify-items: center;
  text-align: center;
}

.activation-panel {
  width: min(860px, 100%);
  margin: 12px auto 0;
  padding: 38px 46px 42px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 255, 0.98));
  border: 1px solid rgba(31, 109, 215, 0.12);
  box-shadow: 0 28px 90px rgba(17, 40, 84, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.activation-icon-shell {
  width: 76px;
  height: 76px;
  margin: 0 auto;
  border-radius: 22px;
  background: linear-gradient(180deg, #edf5ff, #dceaff);
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 14px 34px rgba(31, 109, 215, 0.08);
}

.activation-icon-shell svg {
  width: 34px;
  height: 34px;
  fill: #2b76e8;
}

.activation-hero {
  margin-top: 20px;
}

.eyebrow-pill {
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: #e8f1fb;
  color: #6780a7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(31, 109, 215, 0.1);
}

.hero-title,
.success-hero h2 {
  margin: 22px 0 0;
  max-width: 980px;
  font-size: clamp(64px, 7vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 850;
}

.hero-title .accent-text,
.brand-accent {
  color: var(--primary);
}

.activation-panel .hero-title {
  margin-top: 0;
  color: #171c26;
  font-size: clamp(34px, 4.6vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.hero-subtitle,
.success-hero p {
  margin: 28px 0 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.activation-panel .hero-subtitle {
  margin-top: 10px;
  color: #7e8ca5;
  font-size: 16px;
  line-height: 1.6;
}

.redeem-form {
  display: grid;
  gap: 18px;
}

.activation-form {
  width: min(520px, 100%);
  margin: 28px auto 0;
  gap: 16px;
}

.field-label,
.credential-label,
.meta-label,
.card-kicker {
  color: #4e5f7e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.activation-form .field-label {
  color: #73809a;
  font-size: 12px;
  text-align: left;
}

.code-input {
  width: 100%;
  height: 78px;
  padding: 0 26px;
  border-radius: 20px;
  border: 1px solid transparent;
  background: var(--panel-soft);
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.activation-form .code-input {
  height: 62px;
  border-radius: 18px;
  background: #eef4ff;
  border: 1px solid rgba(78, 109, 166, 0.22);
  text-align: center;
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #111828;
}

.code-input::placeholder {
  color: #a5b1c4;
}

.activation-form .code-input::placeholder {
  color: #7f8da8;
  letter-spacing: 0.06em;
}

.code-input:focus {
  border-color: rgba(31, 109, 215, 0.28);
  box-shadow: 0 0 0 5px rgba(31, 109, 215, 0.08);
}

.turnstile-wrap {
  display: flex;
  justify-content: center;
}

.primary-button {
  min-height: 68px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary), var(--primary-deep));
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(31, 109, 215, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 38px rgba(31, 109, 215, 0.22);
}

.activation-button {
  min-height: 54px;
  margin-top: 8px;
  border-radius: 18px;
  background: linear-gradient(90deg, #2e7cf3, #1f6dd7 56%, #2f87ff);
  font-size: 16px;
  letter-spacing: 0.02em;
}

.primary-button:disabled {
  opacity: 0.68;
  cursor: default;
  transform: none;
}

.primary-button-wide {
  min-width: 300px;
}

.secondary-button {
  min-height: 54px;
  padding: 0 22px;
  border: 0;
  border-radius: 18px;
  background: #edf4ff;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.secondary-button:hover {
  background: #e3eeff;
  transform: translateY(-1px);
}

.secondary-button:disabled {
  opacity: 0.7;
  cursor: default;
  transform: none;
}

.button-arrow {
  font-size: 24px;
  line-height: 1;
}

.code-input-compact {
  height: 54px;
  padding: 0 18px;
  border-radius: 18px;
  background: #f4f7fc;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.support-line,
.status-text,
.secure-note,
.credit-hint,
.support-box p,
.mini-info-card p,
.page-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.support-line {
  text-align: center;
}

.support-line span {
  color: var(--primary);
  font-weight: 700;
}

.activation-form .support-line {
  margin-top: 4px;
  color: #8490a7;
  font-size: 18px;
  line-height: 1.6;
}

.status-text {
  text-align: center;
  min-height: 24px;
}

.activation-form .status-text {
  color: #75819a;
  font-size: 18px;
  line-height: 1.6;
}

.activation-progress {
  width: min(860px, 100%);
  margin: 20px auto 0;
  padding: 16px 12px 0;
  display: grid;
  justify-items: center;
  text-align: center;
}

.activation-progress-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #e9f2ff;
  display: grid;
  place-items: center;
}

.activation-progress-icon svg {
  width: 34px;
  height: 34px;
  fill: #2f74da;
  animation: spin 1.05s linear infinite;
}

.activation-progress h2 {
  margin: 22px 0 0;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.activation-progress p {
  margin: 16px 0 0;
  color: #74829b;
  font-size: 17px;
  line-height: 1.7;
}

.activation-progress-text {
  color: #2b76e8 !important;
  font-weight: 700;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.status-text.is-error {
  color: var(--danger);
}

.status-text.is-success {
  color: var(--primary);
}

.result-feedback {
  padding: 14px 18px;
  border-radius: 18px;
  background: #f4f7fc;
}

.result-feedback.is-success {
  background: rgba(28, 179, 98, 0.12);
  color: #138a4f;
  box-shadow: 0 10px 24px rgba(28, 179, 98, 0.12);
}

.result-feedback.is-error {
  background: rgba(218, 90, 90, 0.1);
  color: #c24949;
}

.feature-grid,
.result-highlights {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.feature-card,
.mini-info-card {
  min-height: 230px;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: 0 16px 48px rgba(17, 40, 84, 0.04);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-soft);
  display: grid;
  place-items: center;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--primary);
}

.feature-card h2,
.mini-info-card h4,
.result-card h3 {
  margin: 20px 0 12px;
  font-size: 31px;
  letter-spacing: -0.05em;
}

.feature-card h2,
.mini-info-card h4 {
  font-size: 30px;
}

.feature-card p,
.mini-info-card p {
  max-width: 310px;
}

.page-footer {
  margin-top: 76px;
  padding: 28px 0 0;
  border-top: 1px solid rgba(19, 33, 68, 0.06);
  display: block;
}

.page-footer strong {
  display: block;
  margin-bottom: 8px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.success-badge {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #e9f2ff;
  display: grid;
  place-items: center;
}

.success-badge svg {
  width: 34px;
  height: 34px;
  fill: var(--primary);
}

.success-hero h2 {
  font-size: clamp(44px, 5vw, 66px);
}

.result-feedback {
  margin-top: 16px;
}

.result-feedback-top {
  margin: 0 0 18px;
  font-size: 18px;
}

.result-announcement {
  width: min(100%, 700px);
  margin: 0 auto 18px;
  min-height: 50px;
  padding: 0 16px;
  border-radius: 18px;
  border: 1px solid rgba(244, 109, 78, 0.14);
  background: linear-gradient(135deg, #fff5ef 0%, #ffe6d7 100%);
  color: #d14734;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 16px 34px rgba(236, 127, 76, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  cursor: pointer;
}

.result-announcement:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(236, 127, 76, 0.16);
  filter: saturate(1.04);
}

.result-announcement-badge {
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(231, 81, 54, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.result-announcement-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #e35a43;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(227, 90, 67, 0.08);
}

.result-announcement-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.result-announcement-text {
  flex: 1;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.4;
  text-align: center;
}

.result-announcement-arrow {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #e35a43;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(227, 90, 67, 0.08);
}

.result-announcement-arrow svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.result-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 26px;
  align-items: start;
}

.left-stack {
  display: grid;
  gap: 24px;
  align-content: start;
}

.side-stack {
  display: grid;
  gap: 24px;
}

.side-stack .recharge-panel {
  margin-top: 0;
}

.result-card {
  background: var(--panel);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.status-pill {
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #edf5ff;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-pill.is-danger {
  background: #ffeef0;
  color: var(--danger);
}

.credential-row {
  margin-top: 24px;
}

.credential-box {
  margin-top: 12px;
  min-height: 62px;
  padding: 0 16px 0 18px;
  border-radius: 18px;
  background: var(--panel-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.credential-box code {
  flex: 1;
  min-width: 0;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.credential-box.is-secret code {
  color: var(--text);
}

.credential-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
  position: relative;
  overflow: visible;
}

.icon-button:hover {
  background: rgba(31, 109, 215, 0.08);
  transform: translateY(-1px);
}

.icon-button svg {
  width: 18px;
  height: 18px;
  fill: #58667e;
}

.icon-button.is-copied {
  background: rgba(28, 179, 98, 0.12);
}

.icon-button.is-copied svg {
  fill: #15a05c;
}

.copy-badge {
  position: absolute;
  top: -10px;
  right: -12px;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1fc86f, #17a65d);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 18px rgba(23, 166, 93, 0.24);
  opacity: 0;
  transform: translateY(4px) scale(0.94);
  pointer-events: none;
}

.icon-button.is-copied .copy-badge {
  animation: copy-badge-flash 2.2s ease forwards;
}

@keyframes copy-badge-flash {
  0% {
    opacity: 0;
    transform: translateY(4px) scale(0.94);
  }
  12% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  78% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-2px) scale(0.96);
  }
}

.meta-row {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.meta-item {
  padding: 18px;
  border-radius: 18px;
  background: #fbfcff;
  border: 1px solid rgba(19, 33, 68, 0.05);
}

.meta-value {
  display: block;
  margin-top: 10px;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 700;
  word-break: break-all;
}

.topup-target-panel {
  margin-top: 22px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 247, 238, 0.96), rgba(255, 252, 248, 0.96));
  border: 1px solid rgba(246, 147, 76, 0.18);
}

.topup-target-copy {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.group-switch-panel {
  margin-top: 22px;
  padding: 20px;
  border-radius: 22px;
  background: #fbfcff;
  border: 1px solid rgba(19, 33, 68, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.group-switch-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.group-switch-head h4 {
  margin: 8px 0 0;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.group-switch-current-tag {
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: #edf5ff;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.group-switch-copy,
.group-switch-status {
  margin: 14px 0 0;
  color: #74829a;
  font-size: 14px;
  line-height: 1.75;
}

.group-switch-status {
  min-height: 24px;
  font-size: 13px;
}

.group-switch-status.is-error {
  color: var(--danger);
}

.group-switch-status.is-success {
  color: #138a4f;
}

.group-switch-guide {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.group-switch-guide-item {
  min-height: 110px;
  padding: 16px 16px 15px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #f3f8ff 100%);
  box-shadow: inset 0 0 0 1px rgba(24, 40, 76, 0.05);
  display: grid;
  align-content: start;
  gap: 8px;
}

.group-switch-guide-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.group-switch-guide-item.is-active {
  background: linear-gradient(180deg, #edf5ff 0%, #e8f1ff 100%);
  box-shadow: inset 0 0 0 1px rgba(31, 109, 215, 0.14), 0 12px 26px rgba(31, 109, 215, 0.08);
}

.group-switch-guide-title {
  color: #14233f;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.group-switch-guide-rate {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.group-switch-guide-desc {
  color: #6f7d95;
  font-size: 13px;
  line-height: 1.65;
  font-weight: 700;
}

.group-switch-capacity-badge {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.group-switch-capacity-badge.is-ok {
  background: rgba(20, 161, 96, 0.12);
  color: #14875a;
}

.group-switch-capacity-badge.is-warn {
  background: rgba(243, 164, 38, 0.16);
  color: #b66a05;
}

.group-switch-capacity-badge.is-danger {
  background: rgba(225, 94, 94, 0.14);
  color: #c24545;
}

.group-switch-form {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.group-switch-select {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid rgba(78, 109, 166, 0.16);
  background: #f4f7fc;
  color: #16233e;
  font-size: 15px;
  font-weight: 700;
  outline: none;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.group-switch-select:focus {
  border-color: rgba(31, 109, 215, 0.26);
  box-shadow: 0 0 0 4px rgba(31, 109, 215, 0.08);
  background: #fff;
}

.group-switch-select:disabled {
  cursor: default;
  opacity: 0.7;
}

.group-switch-button {
  min-width: 132px;
}

.secure-note {
  margin-top: 22px;
  padding-left: 18px;
  position: relative;
}

.secure-note::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
}

.recharge-panel {
  margin-top: 24px;
  padding: 20px;
  border-radius: 22px;
  background: #fbfcff;
  border: 1px solid rgba(19, 33, 68, 0.05);
}

.recharge-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.recharge-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.recharge-head h4 {
  margin: 8px 0 0;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.buy-card-button {
  min-height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(242, 139, 38, 0.18);
  background: linear-gradient(135deg, #ff9a3d 0%, #ff7a1a 52%, #ffb25b 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: 0 14px 30px rgba(255, 129, 25, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  cursor: pointer;
}

.buy-card-button-landing {
  min-height: 52px;
  width: 100%;
  margin-top: -2px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff7ed 0%, #ffe7c8 100%);
  border-color: rgba(248, 147, 45, 0.22);
  color: #d96a12;
  font-size: 16px;
  box-shadow: 0 14px 30px rgba(255, 148, 46, 0.12);
}

.buy-card-button-recharge {
  position: relative;
  min-height: 42px;
  padding: 0 22px 0 20px;
  border: 1px solid rgba(243, 128, 16, 0.26);
  background: linear-gradient(135deg, #ffb356 0%, #ff8d24 52%, #ff6f0f 100%);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.06em;
  box-shadow: 0 18px 38px rgba(255, 128, 16, 0.3);
  animation: recharge-buy-pulse 2.6s ease-in-out infinite;
}

.buy-card-button-recharge::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 170, 74, 0.34);
  opacity: 0.9;
  pointer-events: none;
}

.buy-card-button-recharge::before {
  content: ">";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.buy-card-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(255, 128, 16, 0.3);
  filter: saturate(1.03);
}

.buy-card-button-recharge:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 22px 46px rgba(255, 128, 16, 0.36);
  filter: saturate(1.08);
}

.buy-card-button:active {
  transform: translateY(0);
}

@keyframes recharge-buy-pulse {
  0%,
  100% {
    box-shadow: 0 16px 34px rgba(255, 128, 16, 0.24);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 18px 42px rgba(255, 128, 16, 0.38);
    transform: translateY(-1px);
  }
}

.recharge-copy {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.recharge-form {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.recharge-history {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.recharge-history-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: #f6f9ff;
}

.recharge-history-label {
  display: block;
  color: #7a889f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.recharge-history-value {
  display: block;
  margin-top: 8px;
  color: #1e2f4d;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 800;
  word-break: break-all;
}

.credit-metric-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.credit-metric-card {
  min-height: 98px;
  padding: 16px 18px 15px;
  border-radius: 24px;
  background: linear-gradient(180deg, #fbfdff 0%, #f6f9ff 100%);
  box-shadow: inset 0 0 0 1px rgba(24, 40, 76, 0.04);
  display: grid;
  align-content: center;
}

.credit-metric-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.credit-metric-label {
  color: #728099;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.credit-metric-value {
  color: #14233f;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.credit-metric-card.is-green .credit-metric-value {
  color: #1ea95b;
}

.buy-card-button-credit {
  width: 100%;
  min-height: 52px;
  margin-top: 18px;
  border-radius: 18px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: 0 18px 38px rgba(255, 128, 16, 0.2);
}

.purchase-card {
  padding: 28px 28px 26px;
  display: grid;
  gap: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(24, 40, 76, 0.04);
}

.purchase-card-kicker {
  margin-bottom: -6px;
}

.purchase-card-title {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.05em;
}

.purchase-card-summary {
  margin: 0;
  color: #74829a;
  font-size: 14px;
  line-height: 1.85;
}

.purchase-card-point {
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fffdf9 0%, #fff8ef 100%);
  box-shadow: inset 0 0 0 1px rgba(234, 161, 72, 0.1);
}

.purchase-card-point-label {
  display: block;
  color: #c18225;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.purchase-card-point-value {
  display: block;
  margin-top: 8px;
  color: #16233e;
  font-size: 15px;
  line-height: 1.75;
  font-weight: 800;
}

.purchase-card-button {
  margin-top: 4px;
}

.usage-detail-card {
  margin-top: 8px;
  padding: 30px 28px 26px;
}

.usage-detail-kicker,
.usage-detail-title {
  text-align: center;
}

.usage-detail-title {
  margin: 10px 0 0;
  font-size: 36px;
  letter-spacing: -0.05em;
}

.usage-detail-list {
  margin-top: 24px;
}

.usage-detail-item {
  min-height: 102px;
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f8fbff 0%, #f4f8ff 100%);
  display: flex;
  align-items: stretch;
  gap: 16px;
}

.usage-detail-bar {
  width: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #3a82ff 0%, #78b3ff 100%);
  box-shadow: 0 10px 22px rgba(58, 130, 255, 0.18);
  flex-shrink: 0;
}

.usage-detail-copy {
  display: grid;
  align-content: center;
  gap: 6px;
  min-width: 0;
}

.usage-detail-label {
  color: #5f6f89;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.usage-detail-amount {
  color: #14233f;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.usage-detail-meta {
  color: #8a96aa;
  font-size: 12px;
  line-height: 1.6;
  font-weight: 700;
}

.usage-detail-breakdown {
  margin-left: auto;
  min-width: 250px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: center;
}

.usage-detail-breakdown-item {
  min-height: 74px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(24, 40, 76, 0.05);
  display: grid;
  align-content: center;
  gap: 6px;
}

.usage-detail-breakdown-label {
  color: #7b88a0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.usage-detail-breakdown-value {
  color: #1a2b4a;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 900;
  white-space: nowrap;
}

.usage-detail-note {
  margin: 16px auto 0;
  max-width: 520px;
  color: #7e8ca5;
  font-size: 13px;
  line-height: 1.75;
  text-align: center;
}

.usage-latest-record {
  margin-top: 16px;
  padding: 16px 18px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  box-shadow: inset 0 0 0 1px rgba(35, 63, 116, 0.06);
}

.usage-latest-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.usage-latest-kicker {
  color: #5f6f89;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.usage-latest-time {
  color: #8e9ab0;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.usage-latest-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.usage-latest-cell {
  min-height: 78px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(244, 248, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(24, 40, 76, 0.04);
  display: grid;
  align-content: center;
  gap: 7px;
  min-width: 0;
}

.usage-latest-cell-label {
  color: #7b88a0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.usage-latest-cell-value {
  color: #182746;
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.usage-latest-model .usage-latest-cell-value {
  font-size: 21px;
}

.quota-guide-card {
  padding: 28px 28px 26px;
  display: grid;
  gap: 18px;
}

.quota-guide-kicker {
  margin-bottom: -6px;
}

.quota-guide-title {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.05em;
}

.quota-guide-summary {
  margin: 0;
  color: #74829a;
  font-size: 14px;
  line-height: 1.85;
}

.quota-guide-points {
  display: grid;
  gap: 12px;
}

.quota-guide-point {
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #f8fbff 0%, #f3f8ff 100%);
  box-shadow: inset 0 0 0 1px rgba(24, 40, 76, 0.05);
}

.quota-guide-point-label {
  display: block;
  color: #7990b0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.quota-guide-point-value {
  display: block;
  margin-top: 8px;
  color: #16233e;
  font-size: 15px;
  line-height: 1.75;
  font-weight: 800;
}

.quota-guide-button {
  min-height: 52px;
  width: 100%;
  border-radius: 18px;
  background: linear-gradient(135deg, #2f80ff 0%, #1d6cff 52%, #5da7ff 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 0 18px 34px rgba(35, 111, 255, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.quota-guide-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 38px rgba(35, 111, 255, 0.28);
  filter: saturate(1.03);
}

.usage-detail-legacy {
  display: none !important;
}

.step-link {
  width: 100%;
  min-height: 58px;
  margin-top: 14px;
  padding: 0 18px;
  border: 0;
  border-radius: 18px;
  background: #f8fbff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.step-link:hover {
  background: #edf4ff;
}

.step-link strong {
  color: var(--muted);
}

.support-box {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  background: #fbfcff;
}

.support-box-label {
  display: inline-block;
  margin-bottom: 10px;
  color: #50617f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.result-action-row {
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.result-action-row-inline {
  grid-column: 1 / -1;
  margin-top: 0;
  min-height: 126px;
  padding: 18px 8px 4px;
  border-radius: 28px;
  background: transparent;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: center;
}

.ghost-guide-button {
  min-height: 70px;
  width: min(100%, 320px);
  padding: 0 30px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #6678ff 0%, #4f63ef 55%, #7f8dff 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 20px 38px rgba(79, 99, 239, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  justify-self: start;
  margin-left: 48px;
}

.ghost-guide-button:hover {
  background: linear-gradient(135deg, #7183ff 0%, #586cf3 55%, #8b97ff 100%);
  transform: translateY(-1px);
  box-shadow: 0 24px 44px rgba(79, 99, 239, 0.28);
}

.result-action-row-inline .ghost-guide-button,
.result-action-row-inline .primary-button {
  min-height: 70px;
  width: min(100%, 320px);
}

.result-action-row-inline .primary-button {
  justify-self: end;
  margin-right: 48px;
  box-shadow: 0 20px 38px rgba(31, 109, 215, 0.2);
}

.result-action-row-inline .primary-button:hover {
  box-shadow: 0 24px 44px rgba(31, 109, 215, 0.24);
}

@media (max-width: 1160px) {
  .result-action-row-inline {
    padding-left: 0;
    padding-right: 0;
  }

  .ghost-guide-button {
    margin-left: 16px;
  }

  .result-action-row-inline .primary-button {
    margin-right: 16px;
  }
}

.result-hidden-meta {
  display: none;
}

@media (max-width: 1080px) {
  .feature-grid,
  .result-highlights,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .result-announcement {
    width: min(100%, 760px);
  }

  .left-stack {
    display: contents;
  }

  .page-footer {
    display: block;
  }
}

@media (max-width: 840px) {
  .page-shell {
    width: min(100vw - 20px, 760px);
  }

  .topbar {
    height: auto;
    padding: 18px 0;
    justify-content: space-between;
  }

  .header-brand {
    gap: 10px;
  }

  .brand-avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .brand-title {
    font-size: 19px;
  }

  .top-actions {
    flex-wrap: wrap;
    gap: 14px;
    justify-content: flex-end;
  }

  .hero-title,
  .success-hero h2 {
    font-size: clamp(44px, 12vw, 60px);
  }

  .activation-panel {
    padding: 28px 20px 30px;
    border-radius: 28px;
  }

  .activation-icon-shell {
    width: 68px;
    height: 68px;
    border-radius: 20px;
  }

  .activation-icon-shell svg {
    width: 30px;
    height: 30px;
  }

  .activation-panel .hero-title {
    font-size: clamp(28px, 10vw, 36px);
  }

  .hero-subtitle,
  .success-hero p {
    font-size: 16px;
  }

  .redeem-card,
  .result-card,
  .feature-card,
  .mini-info-card {
    padding: 22px;
  }

  .activation-form {
    margin-top: 26px;
  }

  .activation-form .code-input {
    height: 58px;
    font-size: 16px;
    letter-spacing: 0.04em;
    padding: 0 16px;
  }

  .activation-button {
    min-height: 52px;
    font-size: 16px;
  }

  .activation-progress {
    margin-top: 16px;
    padding-top: 10px;
  }

  .activation-progress-icon {
    width: 68px;
    height: 68px;
  }

  .activation-progress-icon svg {
    width: 28px;
    height: 28px;
  }

  .activation-progress h2 {
    font-size: clamp(30px, 9vw, 40px);
  }

  .activation-progress p,
  .result-feedback-top {
    font-size: 16px;
  }

  .feature-grid,
  .result-highlights {
    margin-top: 48px;
  }

  .meta-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px), (hover: none) and (pointer: coarse) and (max-width: 1024px) {
  body {
    background:
      radial-gradient(circle at top center, rgba(31, 109, 215, 0.05), transparent 36%),
      linear-gradient(180deg, #fbfbfc 0%, #f4f6fb 100%);
    padding-bottom: 110px;
  }

  .page-shell {
    width: min(calc(100vw - 24px), 408px);
    padding-bottom: 16px;
  }

  .topbar {
    min-height: 66px;
    padding: 12px 0 14px;
  }

  .header-brand {
    gap: 0;
  }

  .header-brand .brand-avatar {
    display: none;
  }

  .brand-title {
    font-size: 22px;
    letter-spacing: -0.055em;
  }

  .top-actions {
    gap: 0;
  }

  .top-text,
  .top-actions .action-pill {
    display: none;
  }

  .mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .mobile-circle-button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #66748c;
    display: grid;
    place-items: center;
    box-shadow: 0 12px 24px rgba(18, 36, 72, 0.08);
  }

  .mobile-circle-button svg {
    width: 17px;
    height: 17px;
  }

  .mobile-avatar-button {
    padding: 3px;
    background: linear-gradient(135deg, #0e4fb4, #1f6dd7);
    box-shadow: 0 12px 24px rgba(31, 109, 215, 0.24);
  }

  .mobile-header-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
  }

  .main-stage {
    padding: 18px 0 10px;
  }

  .activation-panel {
    width: 100%;
    margin-top: 0;
    padding: 12px 4px 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .activation-icon-shell {
    display: none;
  }

  .activation-hero {
    margin-top: 8px;
  }

  .activation-panel .hero-title {
    max-width: 312px;
    font-size: 28px;
    line-height: 1.02;
    letter-spacing: -0.065em;
  }

  .activation-panel .hero-subtitle {
    max-width: 304px;
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.58;
    color: #6f7d93;
  }

  .activation-form {
    width: min(100%, 336px);
    margin-top: 28px;
    padding: 22px 18px 16px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 22px 50px rgba(19, 33, 68, 0.1);
    gap: 14px;
  }

  .activation-form .field-label {
    font-size: 10px;
    letter-spacing: 0.14em;
    color: #8693a8;
  }

  .activation-form .code-input {
    height: 52px;
    padding: 0 16px;
    border: 0;
    border-radius: 14px;
    background: #f3f5f9;
    box-shadow: inset 0 0 0 1px rgba(123, 139, 170, 0.08);
    font-size: 17px;
    letter-spacing: 0.04em;
  }

  .activation-form .code-input::placeholder {
    color: #b1bbca;
    letter-spacing: 0.03em;
  }

  .activation-button {
    min-height: 52px;
    margin-top: 2px;
    border-radius: 999px;
    font-size: 17px;
    box-shadow: 0 18px 28px rgba(31, 109, 215, 0.2);
  }

  .activation-form .support-line {
    display: none;
  }

  .activation-form .status-text {
    min-height: auto;
    padding: 0 6px;
    color: #8390a6;
    font-size: 13px;
    line-height: 1.55;
  }

  .mobile-feature-list {
    width: min(100%, 342px);
    margin: 42px auto 0;
    display: grid;
    gap: 14px;
  }

  .mobile-feature-card {
    padding: 16px 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 30px rgba(18, 36, 72, 0.06);
  }

  .mobile-success-hero {
    width: min(100%, 330px);
    margin: 2px auto 20px;
    display: grid;
    justify-items: center;
    text-align: center;
  }

  .mobile-success-hero h2 {
    margin: 18px 0 0;
    font-size: 27px;
    line-height: 1.08;
    letter-spacing: -0.055em;
  }

  .mobile-success-hero p {
    margin: 12px 0 0;
    max-width: 304px;
    color: #6f7d93;
    font-size: 15px;
    line-height: 1.6;
  }

  .result-feedback-top {
    margin-bottom: 12px;
    font-size: 13px;
  }

  .result-announcement {
    width: min(100%, 336px);
    margin-bottom: 14px;
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 16px;
    gap: 10px;
  }

  .result-announcement-badge {
    min-height: 24px;
    padding: 0 10px;
    font-size: 11px;
  }

  .result-announcement-icon {
    width: 28px;
    height: 28px;
  }

  .result-announcement-text {
    font-size: 13px;
  }

  .result-grid {
    margin-top: 0;
    width: min(100%, 336px);
    margin-left: auto;
    margin-right: auto;
    gap: 16px;
  }

  .side-stack {
    display: contents;
  }

  .credentials-card {
    order: 1;
    border-radius: 28px;
    padding: 20px 18px;
  }

  .recharge-panel {
    order: 2;
    border-radius: 28px;
    padding: 20px 18px;
  }

  .purchase-card {
    order: 3;
    border-radius: 28px;
    padding: 20px 18px 18px;
    gap: 14px;
  }

  .credits-card {
    order: 4;
    border-radius: 28px;
    padding: 20px 18px 18px;
  }

  .quota-guide-card {
    order: 5;
    border-radius: 28px;
    padding: 20px 18px 18px;
    gap: 14px;
  }

  .usage-detail-card {
    order: 6;
    margin-top: 0;
    border-radius: 28px;
    padding: 20px 18px 18px;
  }

  .credits-card .card-kicker {
    color: #98a4b9;
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .credits-card h3 {
    margin: 8px 0 0;
    font-size: 18px;
    letter-spacing: -0.03em;
  }

  .purchase-card-title {
    font-size: 22px;
    letter-spacing: -0.03em;
  }

  .purchase-card-summary {
    font-size: 13px;
    line-height: 1.75;
  }

  .purchase-card-point {
    padding: 14px 14px 13px;
    border-radius: 18px;
  }

  .purchase-card-point-value {
    font-size: 13px;
    line-height: 1.7;
  }

  .credit-metric-grid {
    margin-top: 16px;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .credit-metric-card {
    min-height: 82px;
    padding: 14px 14px 13px;
    border-radius: 20px;
    gap: 12px;
  }

  .credit-metric-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    font-size: 15px;
  }

  .credit-metric-label {
    font-size: 12px;
  }

  .credit-metric-value {
    font-size: 19px;
  }

  .usage-detail-title {
    font-size: 24px;
    letter-spacing: -0.04em;
  }

  .usage-detail-list {
    margin-top: 18px;
  }

  .usage-detail-item {
    min-height: 84px;
    padding: 14px 14px 14px 12px;
    border-radius: 18px;
    gap: 12px;
  }

  .usage-detail-bar {
    width: 6px;
  }

  .usage-detail-label {
    font-size: 13px;
  }

  .usage-detail-amount {
    font-size: 20px;
  }

  .usage-detail-meta {
    font-size: 11px;
  }

  .usage-detail-breakdown {
    min-width: 0;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .usage-detail-breakdown-item {
    min-height: 58px;
    padding: 10px 12px;
    border-radius: 14px;
  }

  .usage-detail-breakdown-label {
    font-size: 11px;
  }

  .usage-detail-breakdown-value {
    font-size: 18px;
  }

  .usage-detail-note {
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.65;
  }

  .usage-latest-record {
    margin-top: 14px;
    padding: 14px;
    border-radius: 18px;
  }

  .usage-latest-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .usage-latest-kicker {
    font-size: 12px;
  }

  .usage-latest-time {
    font-size: 11px;
    text-align: left;
  }

  .usage-latest-grid {
    margin-top: 12px;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .usage-latest-cell {
    min-height: 64px;
    padding: 10px 12px;
    border-radius: 14px;
    gap: 5px;
  }

  .usage-latest-cell-label {
    font-size: 11px;
  }

  .usage-latest-cell-value {
    font-size: 16px;
  }

  .quota-guide-title {
    font-size: 24px;
  }

  .quota-guide-summary {
    font-size: 13px;
    line-height: 1.72;
  }

  .quota-guide-point {
    padding: 14px 14px;
    border-radius: 16px;
  }

  .quota-guide-point-value {
    font-size: 14px;
    line-height: 1.68;
  }

  .quota-guide-button {
    min-height: 48px;
    font-size: 14px;
  }

  .credit-number-row {
    margin-top: 10px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .credit-number-row strong {
    font-size: 38px;
  }

  .credit-number-row span {
    font-size: 15px;
  }

  .buy-card-button-credit {
    min-height: 48px;
    margin-top: 14px;
    border-radius: 16px;
    font-size: 14px;
  }

  .usage-summary {
    margin-top: 12px;
    font-size: 12px;
  }

  .usage-summary strong {
    font-size: 13px;
  }

  .recharge-panel {
    margin-top: 18px;
    padding: 18px 16px;
    border-radius: 24px;
  }

  .group-switch-panel {
    margin-top: 18px;
    padding: 18px 16px;
    border-radius: 24px;
  }

  .group-switch-head {
    gap: 12px;
  }

  .group-switch-head h4 {
    font-size: 18px;
  }

  .group-switch-current-tag {
    min-height: 28px;
    padding: 0 12px;
    font-size: 11px;
  }

  .group-switch-copy,
  .group-switch-status {
    font-size: 13px;
    line-height: 1.68;
  }

  .group-switch-form {
    grid-template-columns: 1fr;
  }

  .group-switch-guide {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .group-switch-guide-item {
    min-height: 0;
    padding: 14px 14px 13px;
    border-radius: 16px;
  }

  .group-switch-guide-top {
    flex-wrap: wrap;
  }

  .group-switch-guide-title {
    font-size: 14px;
  }

  .group-switch-guide-rate,
  .group-switch-guide-desc {
    font-size: 12px;
  }

  .group-switch-select,
  .group-switch-button {
    min-height: 50px;
    border-radius: 16px;
  }

  .recharge-head {
    gap: 12px;
  }

  .recharge-head-actions {
    width: 100%;
    justify-content: flex-end;
    gap: 10px;
  }

  .recharge-head h4 {
    font-size: 18px;
  }

  .buy-card-button {
    min-height: 38px;
    padding: 0 16px;
    font-size: 12px;
  }

  .buy-card-button-recharge {
    min-height: 42px;
    padding: 0 18px;
    font-size: 13px;
  }

  .buy-card-button-landing {
    min-height: 48px;
    font-size: 15px;
    border-radius: 16px;
  }

  .recharge-copy {
    font-size: 13px;
    line-height: 1.65;
  }

  .recharge-form {
    grid-template-columns: 1fr;
  }

  .recharge-history {
    grid-template-columns: 1fr;
  }

  .code-input-compact,
  .secondary-button {
    min-height: 50px;
    border-radius: 16px;
  }

  .credentials-card .card-head {
    align-items: center;
  }

  .credentials-card h3 {
    margin: 8px 0 0;
    font-size: 22px;
    letter-spacing: -0.045em;
  }

  .status-pill {
    min-height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 11px;
  }

  .credential-row {
    margin-top: 18px;
  }

  .credential-box {
    min-height: 72px;
    padding: 0 12px 0 14px;
    border-radius: 22px;
    background: #f4f7fc;
  }

  .credential-box code {
    font-size: 13px;
  }

  .credential-actions {
    gap: 8px;
  }

  .icon-button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(180deg, #2f87ff, #1f6dd7);
    box-shadow: 0 14px 22px rgba(31, 109, 215, 0.2);
  }

  .icon-button:hover {
    background: linear-gradient(180deg, #2f87ff, #1f6dd7);
  }

  .icon-button svg {
    fill: #fff;
  }

  .credential-actions .icon-button:first-child {
    background: #edf2fa;
    box-shadow: none;
  }

  .credential-actions .icon-button:first-child svg {
    fill: #64748b;
  }

  .copy-badge {
    top: -8px;
    right: -6px;
  }

  .meta-row,
  .secure-note,
  .result-action-row,
  #back-button,
  .support-box,
  .page-footer {
    display: none;
  }

  .mobile-tabbar {
    position: fixed;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    width: min(calc(100vw - 24px), 360px);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 44px rgba(18, 36, 72, 0.12);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    z-index: 50;
  }

  .mobile-tab {
    border: 0;
    background: transparent;
    padding: 4px 0 0;
    display: grid;
    justify-items: center;
    gap: 6px;
    color: #9aa6bb;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
  }

  .mobile-tab-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: currentColor;
  }

  .mobile-tab.is-active {
    color: var(--primary);
  }

  .mobile-tab.is-active .mobile-tab-icon {
    background: #e8f1ff;
  }

  .setup-modal-card {
    width: min(calc(100vw - 24px), 360px);
    padding: 22px 18px 18px;
    border-radius: 28px;
  }

  .setup-modal-card h3 {
    font-size: 22px;
  }

  .setup-modal-text {
    font-size: 14px;
    line-height: 1.72;
  }

  .setup-modal-text.is-soft {
    font-size: 13px;
  }

  .setup-device-badge {
    font-size: 11px;
  }

  .setup-device-hint {
    font-size: 12px;
    line-height: 1.65;
  }

  .setup-command-box {
    margin-top: 16px;
    padding: 14px 14px 15px;
    border-radius: 18px;
  }

  .setup-command-box code {
    font-size: 12px;
    line-height: 1.7;
  }

  .setup-modal-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ghost-guide-button,
  .result-action-row .primary-button {
    width: 100%;
  }
}
