* {
  box-sizing: border-box;
}

:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  font-weight: 400;
  color-scheme: light;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  --primary-color: #6366f1;
  --primary-gradient: linear-gradient(135deg, #6366f1, #8b5cf6);
  --button-gradient: linear-gradient(135deg, #6366f1, #8b5cf6);
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --line-color: #e2e8f0;
  --input-bg: #f8fafc;
  --success-color: #10b981;
  --success-bg: #ecfdf5;
  --warning-color: #f59e0b;
  --warning-bg: #fffbeb;
  --error-color: #ef4444;
  --error-bg: #fef2f2;
  --shadow-soft: 0 20px 42px rgba(15, 23, 42, 0.07), 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-button: 0 10px 24px rgba(99, 102, 241, 0.24);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 209, 220, 0.42), transparent 28%),
    radial-gradient(circle at 84% 10%, rgba(191, 219, 254, 0.66), transparent 30%),
    linear-gradient(135deg, #f7faff, #eef2ff 48%, #f8fafc);
  color: var(--text-main);
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 480px;
  height: 480px;
  border-radius: 999px;
  filter: blur(72px);
  opacity: 0.3;
  pointer-events: none;
  z-index: -1;
  will-change: transform, opacity;
}

body::before {
  top: -150px;
  right: -110px;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.82) 0%, rgba(199, 210, 254, 0.9) 34%, rgba(167, 139, 250, 0.48) 66%, rgba(167, 139, 250, 0.04) 100%);
  animation: aurora-float-right 14s ease-in-out infinite;
}

body::after {
  bottom: -170px;
  left: -130px;
  background:
    radial-gradient(circle at 38% 38%, rgba(255, 255, 255, 0.7) 0%, rgba(191, 219, 254, 0.66) 28%, rgba(253, 186, 116, 0.22) 62%, rgba(253, 186, 116, 0.02) 100%);
  animation: aurora-float-left 16s ease-in-out infinite;
}

.charge-system,
.query-page {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 18px 52px;
}

.page-header {
  text-align: center;
  margin-bottom: 30px;
}

.page-header-content {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding-top: 12px;
}

.page-overline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 10px auto 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
  text-align: center;
}

.page-title {
  margin: 0 0 8px;
  font-size: clamp(32px, 4.8vw, 40px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-main);
}

body[data-page="recharge"] .page-header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

body[data-page="recharge"] .page-title {
  order: 1;
  margin-bottom: 0;
}

body[data-page="recharge"] .page-overline {
  order: 2;
  margin-top: 8px;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: #7687a0;
}

.page-subtitle {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 620px;
  margin-inline: auto;
}

.inline-helper-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  margin-left: 6px;
}

.header-actions {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 16px;
}

.header-btn {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line-color);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.locale-switcher {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
}

.locale-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.locale-trigger:hover {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.locale-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.locale-arrow {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1;
}

.locale-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 178px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(228, 233, 242, 0.96);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(16px);
}

.locale-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.locale-option:hover,
.locale-option.is-active {
  background: rgba(99, 102, 241, 0.08);
  color: var(--primary-color);
}

.locale-option-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  min-height: 22px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.header-btn:hover,
.primary-button:hover,
.secondary-button:hover,
.link-button:hover,
.secondary-link:hover,
.mini-button:hover,
.back-button:hover {
  transform: translateY(-1px);
}

.content-card,
.query-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.embedded-progress {
  padding: 32px 30px 28px;
  border-bottom: 1px solid var(--line-color);
}

.progress-timeline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0;
  padding: 0 10px;
}

.timeline-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  text-align: center;
}

.timeline-marker {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.marker-circle {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 700;
  position: relative;
  z-index: 2;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 6px 14px rgba(15, 23, 42, 0.03);
  transition: all 0.28s ease;
}

.connector-line {
  position: absolute;
  top: 50%;
  left: calc(50% + 19px);
  width: calc(100% - 38px);
  height: 1.5px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: #e7ebf3;
  z-index: 1;
  overflow: hidden;
}

.timeline-item:last-child .connector-line {
  display: none;
}

.label-text {
  display: inline-block;
  max-width: 116px;
  font-size: 13px;
  color: #8b9ab3;
  font-weight: 500;
  line-height: 1.45;
  white-space: normal;
}

.timeline-item.active .marker-circle {
  background: linear-gradient(135deg, #6671ff 0%, #7a6af8 55%, #8d63f8 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow:
    0 10px 22px rgba(103, 112, 255, 0.22),
    0 0 0 0 rgba(111, 116, 255, 0.2);
  animation: step-breathe 2.9s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.timeline-item.active .label-text {
  color: #0f172a;
  font-weight: 600;
}

.timeline-item.active .connector-line {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 28%, rgba(255, 255, 255, 0) 52%),
    linear-gradient(90deg, rgba(108, 99, 255, 0.78) 0%, rgba(138, 116, 255, 0.52) 42%, rgba(231, 235, 243, 1) 100%);
  background-size: 200% 100%, 100% 100%;
  background-repeat: no-repeat;
  box-shadow: 0 0 0 1px rgba(108, 99, 255, 0.03);
  animation: step-progress 2.8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.timeline-item.completed .marker-circle {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.14);
  color: #5b6cf7;
  box-shadow: none;
}

.timeline-item.completed .label-text {
  color: #475569;
  font-weight: 600;
}

.timeline-item.completed .connector-line {
  background: #c7d2fe;
}

@keyframes step-breathe {
  0%, 100% {
    transform: translateY(0);
    box-shadow:
      0 10px 22px rgba(103, 112, 255, 0.22),
      0 0 0 0 rgba(111, 116, 255, 0.2);
  }
  50% {
    transform: translateY(-1px) scale(1.02);
    box-shadow:
      0 14px 26px rgba(103, 112, 255, 0.18),
      0 0 0 9px rgba(111, 116, 255, 0);
  }
}

@keyframes step-progress {
  0% { background-position: -140% 50%, 0 50%; }
  100% { background-position: 160% 50%, 0 50%; }
}

@keyframes aurora-float-right {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.28;
  }
  50% {
    transform: translate3d(-20px, 16px, 0) scale(1.08);
    opacity: 0.36;
  }
}

@keyframes aurora-float-left {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.24;
  }
  50% {
    transform: translate3d(22px, -14px, 0) scale(1.06);
    opacity: 0.32;
  }
}

.step-content,
.query-card {
  padding: 28px;
}

.feedback-banner {
  border-radius: 16px;
  border: 1px solid var(--line-color);
  background: #f8fafc;
  padding: 16px 18px;
  margin-bottom: 24px;
}

.feedback-banner.warning {
  background: linear-gradient(135deg, #f6f8ff, #f3f8ff);
  border-color: rgba(99, 102, 241, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 10px 24px rgba(99, 102, 241, 0.05);
}

.feedback-banner.success {
  background: var(--success-bg);
  border-color: rgba(16, 185, 129, 0.22);
}

.feedback-banner.error {
  background: var(--error-bg);
  border-color: rgba(239, 68, 68, 0.22);
}

.feedback-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.feedback-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.feedback-label::before {
  --live-dot-rgb: 52, 199, 89;
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #86efac 0%, #34c759 52%, #16a34a 100%);
  box-shadow:
    0 0 0 0 rgba(var(--live-dot-rgb), 0.22),
    0 0 14px rgba(var(--live-dot-rgb), 0.18);
  animation: live-dot-breathe 2.7s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.feedback-banner.warning .feedback-label::before {
  --live-dot-rgb: 52, 199, 89;
  background: radial-gradient(circle at 35% 35%, #86efac 0%, #34c759 52%, #16a34a 100%);
  box-shadow:
    0 0 0 0 rgba(var(--live-dot-rgb), 0.2),
    0 0 10px rgba(var(--live-dot-rgb), 0.12);
}

.feedback-banner.success .feedback-label::before {
  --live-dot-rgb: 34, 197, 94;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(var(--live-dot-rgb), 0.24);
}

.feedback-banner.error .feedback-label::before {
  --live-dot-rgb: 255, 90, 79;
  background: #ff5a4f;
  box-shadow: 0 0 0 0 rgba(var(--live-dot-rgb), 0.24);
}

.feedback-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.masked-code {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 600;
}

.feedback-banner.warning .masked-code {
  background: rgba(99, 102, 241, 0.08);
  color: #4c52c7;
}

.feedback-text {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.feedback-banner.warning .feedback-text {
  color: #5b6485;
}

.step-panel {
  display: none;
  animation: fade-in 0.3s ease;
}

.step-panel.is-active {
  display: block;
}

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

.step-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.back-button {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line-color);
  background: #ffffff;
  color: var(--text-main);
  font-size: 18px;
  cursor: pointer;
}

.header-text {
  flex: 1;
}

.header-text h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
}

.subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.form-section,
.query-input-panel,
.query-result-panel {
  display: flex;
  flex-direction: column;
}

.input-wrapper {
  margin-bottom: 22px;
}

.input-field-shell {
  position: relative;
  display: flex;
  align-items: center;
}

.input-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.required-mark {
  color: var(--error-color);
}

.modern-input,
.modern-textarea {
  width: 100%;
  border: 1px solid var(--line-color);
  border-radius: 12px;
  background: var(--input-bg);
  color: var(--text-main);
  font-size: 14px;
  transition: all 0.2s ease;
  outline: none;
  -webkit-appearance: none;
}

.modern-input {
  min-height: 54px;
  padding: 0 48px 0 16px;
}

.modern-textarea {
  min-height: 180px;
  padding: 16px;
  resize: vertical;
}

.query-textarea {
  min-height: 168px;
}

.modern-input::placeholder,
.modern-textarea::placeholder {
  color: #94a3b8;
}

.modern-input:focus,
.modern-textarea:focus {
  border-color: var(--primary-color);
  background: #ffffff;
  box-shadow:
    0 0 0 4px rgba(99, 102, 241, 0.08),
    0 10px 24px rgba(99, 102, 241, 0.10);
}

.modern-input.is-error {
  border-color: #ff3b30;
  background: #fff7f7;
  box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.12);
  animation: input-shake 0.38s ease-in-out;
}

.modern-input.is-readonly {
  background: #eef2f7;
  color: #475569;
  cursor: default;
}

.clear-btn {
  position: absolute;
  right: 14px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 999px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #d2d6dd;
  color: #ffffff;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.clear-btn.is-visible {
  display: inline-flex;
}

.clear-btn:hover {
  background: #8a94a6;
  transform: scale(1.04);
}

.helper-text,
.error-msg {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
}

.helper-text {
  color: var(--text-muted);
}

.error-msg {
  color: #ff3b30;
  font-weight: 600;
}

.error-msg[hidden] {
  display: none;
}

.trust-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.trust-note-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #64748b;
}

.trust-note-icon svg {
  display: block;
  transform-origin: center;
  animation: trust-pulse 3.2s ease-in-out infinite;
}

@keyframes input-shake {
  0%, 100% {
    transform: translateX(0);
  }
  20%, 60% {
    transform: translateX(-4px);
  }
  40%, 80% {
    transform: translateX(4px);
  }
}

@keyframes live-dot-breathe {
  0%, 100% {
    transform: scale(0.94);
    opacity: 0.84;
    box-shadow:
      0 0 0 0 rgba(var(--live-dot-rgb), 0.2),
      0 0 12px rgba(var(--live-dot-rgb), 0.14);
  }
  50% {
    transform: scale(1.16);
    opacity: 1;
    box-shadow:
      0 0 0 8px rgba(var(--live-dot-rgb), 0),
      0 0 20px rgba(var(--live-dot-rgb), 0.24);
  }
}

@keyframes trust-pulse {
  0%, 100% {
    opacity: 0.68;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes button-shimmer {
  0% {
    background-position: center, 200% 0;
  }
  100% {
    background-position: center, -200% 0;
  }
}

.info-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: linear-gradient(135deg, #eef2ff, #eff6ff);
  border: 1px solid rgba(99, 102, 241, 0.14);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.account-bind-card {
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(238, 242, 255, 0.94), rgba(245, 243, 255, 0.98));
  border: 1px solid rgba(99, 102, 241, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 16px 30px rgba(99, 102, 241, 0.07);
}

.info-banner--bind {
  margin-bottom: 16px;
  padding: 18px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
  border-color: rgba(99, 102, 241, 0.12);
}

.banner-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary-color);
  font-size: 12px;
  font-weight: 700;
}

.banner-text {
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.7;
}

.info-banner--bind .banner-icon {
  min-width: 56px;
  min-height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(139, 92, 246, 0.12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  font-size: 18px;
}

.info-banner--bind .banner-text {
  font-size: 15px;
  line-height: 1.9;
}

.link-row,
.button-row,
.query-actions,
.copy-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.link-row {
  margin-bottom: 18px;
}

.link-row--bind {
  margin-bottom: 0;
}

.link-button,
.secondary-link,
.primary-button,
.secondary-button,
.mini-button {
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.link-button,
.secondary-link {
  min-height: 46px;
  padding: 0 16px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.link-button,
.primary-button {
  background: var(--button-gradient);
  color: #ffffff;
  box-shadow: var(--shadow-button);
}

.link-button--bind {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  font-size: 15px;
  letter-spacing: 0.01em;
}

.secondary-link,
.secondary-button,
.mini-button {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--line-color);
}

.helper-dock {
  margin-top: 24px;
  padding: 18px 18px 0;
  text-align: center;
}

.input-wrapper--account {
  margin-top: 2px;
}

.helper-dock-note {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.helper-dock-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.helper-dock-link {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.helper-dock-link--ghost {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line-color);
  color: var(--text-main);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.helper-dock-link--primary {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.14);
  color: var(--primary-color);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.08);
}

.helper-dock-link:hover {
  transform: translateY(-1px);
}

.site-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  text-align: center;
}

.site-footer-inner {
  max-width: 720px;
  margin: 0 auto;
  color: var(--text-muted);
}

.site-footer-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #526277;
}

.site-footer-disclaimer {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: #74849b;
}

.site-footer-copy {
  margin: 10px 0 0;
  font-size: 12px;
  color: #94a3b8;
}

.primary-button,
.secondary-button {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
}

.primary-button.validating {
  opacity: 1;
  box-shadow:
    0 12px 28px rgba(99, 102, 241, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  background-image:
    linear-gradient(135deg, #6b78f5, #8a5df6),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.42) 50%,
      rgba(255, 255, 255, 0) 100%
    );
  background-size: auto, 220% 100%;
  background-position: center, 200% 0;
  animation: button-shimmer 1.8s linear infinite;
}

.primary-button.validating .button-loading-text {
  letter-spacing: 0.01em;
}

#verifyButton:not(:disabled):not(.validating) {
  animation: verify-breathe 3.4s ease-in-out infinite;
}

.primary-button:disabled,
.secondary-button:disabled,
.mini-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.primary-button.validating:disabled {
  opacity: 1;
  cursor: progress;
  box-shadow:
    0 12px 28px rgba(99, 102, 241, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

@keyframes verify-breathe {
  0%, 100% {
    box-shadow: var(--shadow-button);
    transform: translateY(0);
  }
  50% {
    box-shadow:
      0 14px 34px rgba(99, 102, 241, 0.22),
      0 2px 6px rgba(99, 102, 241, 0.10);
    transform: translateY(-1px);
  }
}

.success-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: 14px;
  background: var(--success-bg);
  border: 1px solid rgba(16, 185, 129, 0.22);
  margin-bottom: 18px;
}

.success-label {
  font-size: 12px;
  font-weight: 600;
  color: #047857;
}

.success-value {
  font-size: 15px;
  font-weight: 700;
  color: #065f46;
  word-break: break-word;
}

.status-card {
  padding: 22px 20px;
  border-radius: 16px;
  margin-bottom: 18px;
  text-align: center;
  border: 1px solid var(--line-color);
  background: #f8fafc;
}

.ready-card {
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  border-color: rgba(99, 102, 241, 0.18);
}

.processing-card {
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
  border-color: rgba(245, 158, 11, 0.2);
}

.success-card-state {
  background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
  border-color: rgba(16, 185, 129, 0.2);
}

.status-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-main);
  font-size: 24px;
  font-weight: 700;
}

.pulse {
  animation: pulse-icon 2s ease-in-out infinite;
}

.bounce {
  animation: bounce-icon 0.8s ease-out;
}

.rotating {
  animation: rotate-icon 1s linear infinite;
}

@keyframes pulse-icon {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes bounce-icon {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

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

.status-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
}

.status-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.success-text {
  color: #059669;
}

.account-card {
  padding: 16px;
  border: 1px solid var(--line-color);
  border-radius: 14px;
  background: #f8fafc;
  margin-bottom: 18px;
}

.account-card span {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.account-card strong {
  display: block;
  font-size: 15px;
  color: var(--text-main);
  word-break: break-word;
}

.charge-action {
  width: 100%;
}

.query-card {
  display: grid;
  gap: 24px;
}

.query-actions {
  margin-top: 18px;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.result-stat {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line-color);
  background: #f8fafc;
}

.result-stat span {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.result-stat strong {
  display: block;
  font-size: 26px;
  font-weight: 700;
  color: var(--text-main);
}

.mini-button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}

.mini-button.is-active {
  background: var(--button-gradient);
  color: #ffffff;
  border-color: transparent;
}

.empty-state {
  padding: 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  color: var(--text-muted);
  font-size: 14px;
}

.table-shell {
  overflow: auto;
  border-radius: 16px;
  border: 1px solid var(--line-color);
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: #ffffff;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-color);
  font-size: 13px;
  color: var(--text-main);
}

th {
  background: #f8fafc;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status-pill.used {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}

.status-pill.not_used {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}

.status-pill.pending {
  background: rgba(99, 102, 241, 0.12);
  color: #4f46e5;
}

.status-pill.invalid {
  background: rgba(239, 68, 68, 0.14);
  color: #b91c1c;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  max-width: 320px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.94);
  color: #ffffff;
  line-height: 1.6;
  font-size: 13px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.toast.success {
  background: rgba(5, 150, 105, 0.96);
}

.toast.error {
  background: rgba(220, 38, 38, 0.96);
}

.loader {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-top-color: rgba(255, 255, 255, 1);
  animation: spin 0.8s linear infinite;
}

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

@media (max-width: 720px) {
  .charge-system,
  .query-page {
    padding: 20px 14px 38px;
  }

  .page-header-content {
    padding-top: 54px;
  }

  body[data-page="recharge"] .page-overline {
    margin-top: 7px;
    font-size: 12px;
  }

  .content-card,
  .query-card {
    border-radius: 18px;
  }

  .embedded-progress {
    padding: 24px 18px 22px;
  }

  .step-content,
  .query-card {
    padding: 20px 18px;
  }

  .marker-circle {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    font-size: 13px;
  }

  .connector-line {
    left: calc(50% + 17px);
    width: calc(100% - 34px);
  }

  .label-text {
    max-width: 92px;
    font-size: 11.5px;
  }

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

  .account-bind-card {
    padding: 16px;
    border-radius: 18px;
  }

  .info-banner--bind {
    padding: 16px 14px;
    border-radius: 16px;
  }

  .info-banner--bind .banner-icon {
    min-width: 48px;
    min-height: 48px;
    border-radius: 16px;
    font-size: 16px;
  }

  .info-banner--bind .banner-text {
    font-size: 14px;
    line-height: 1.8;
  }
}

@media (max-width: 520px) {
  .page-header-content {
    padding-top: 58px;
  }

  .page-subtitle {
    font-size: 14px;
  }

  .locale-switcher {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .locale-trigger {
    min-height: 36px;
    padding: 0 12px;
  }

  body[data-page="query"] .header-actions {
    flex-direction: column;
    align-items: stretch;
  }

  body[data-page="query"] .header-btn {
    width: 100%;
  }

  .helper-dock {
    margin-top: 18px;
    padding: 14px 6px 0;
  }

  .site-footer {
    margin-top: 30px;
    padding-top: 18px;
  }

  .site-footer-meta {
    gap: 12px;
    font-size: 12px;
  }

  .site-footer-disclaimer {
    font-size: 12px;
    line-height: 1.75;
  }

  .modern-input {
    padding-right: 44px;
  }

  .clear-btn {
    right: 12px;
  }

  .trust-note {
    margin-top: 12px;
    font-size: 11px;
  }

  .modern-input:focus,
  .modern-textarea:focus {
    box-shadow:
      0 0 0 3px rgba(99, 102, 241, 0.08),
      0 8px 18px rgba(99, 102, 241, 0.08);
  }

  .helper-dock-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .helper-dock-link {
    width: 100%;
  }

  .feedback-head,
  .link-row,
  .button-row,
  .query-actions,
  .copy-row {
    flex-direction: column;
    align-items: stretch;
  }

  .link-button,
  .secondary-link,
  .mini-button {
    width: 100%;
  }

  .result-stats {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feedback-label::before,
  .modern-input,
  .modern-textarea,
  .primary-button,
  .trust-note-icon,
  .trust-note-icon svg,
  #verifyButton,
  .loader {
    animation: none !important;
    transition: none !important;
  }
}
