.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 4.2rem;
  background: var(--navbar-bg);
  backdrop-filter: var(--blur-nav);
  -webkit-backdrop-filter: var(--blur-nav);
  border-bottom: 1px solid var(--border);
  will-change: transform;
}
.navbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-image {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.brand-text {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}
.navbar-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-3);
  text-decoration: none;
  border-radius: var(--radius);
  transition:
    color var(--transition),
    background var(--transition);
}
.nav-link:hover {
  color: var(--text);
  background: var(--glass-hover);
  text-decoration: none;
}
.nav-link--active {
  color: var(--text);
  background: var(--accent-dim);
  font-weight: 600;
}
.navbar-actions {
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.theme-control {
  position: relative;
}
.theme-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--glass);
  color: var(--text-2);
  cursor: pointer;
  transition:
    border-color var(--transition),
    background var(--transition),
    color var(--transition);
}
.theme-trigger:hover,
.theme-trigger--active {
  color: var(--text);
  border-color: var(--border-bright);
  background: var(--glass-hover);
}
.theme-trigger-icon {
  font-size: 0.75rem;
  line-height: 1;
}
.theme-trigger-dot {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 10px var(--accent-glow);
}
.theme-popover {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  width: min(21rem, calc(100vw - 2rem));
  padding: 1rem;
  z-index: 110;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}
.theme-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}
.theme-popover-title {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
}
.theme-popover-value {
  font-size: 0.74rem;
  color: var(--text-2);
}
.theme-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.55rem;
}
.theme-swatch {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
  will-change: transform;
}
.theme-swatch:hover {
  transform: translateY(-1px) scale(1.06);
}
.theme-swatch--active {
  border-color: #fffffff2;
  box-shadow:
    0 0 0 2px var(--popover-ring-bg),
    0 0 0 4px var(--accent);
}
.theme-custom-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}
.theme-custom-meta {
  flex: 1;
  min-width: 0;
}
.theme-custom-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
}
.theme-custom-hint {
  display: block;
  font-size: 0.72rem;
  color: var(--text-3);
}
.theme-custom-trigger {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  flex-shrink: 0;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}
.theme-custom-trigger:hover {
  transform: translateY(-1px) scale(1.04);
}
.theme-custom-trigger--active {
  border-color: #fffffff2;
  box-shadow:
    0 0 0 2px var(--popover-ring-bg),
    0 0 0 4px var(--accent);
}
.theme-custom-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.navbar-user {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.navbar-username {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-2);
}
.navbar-auth {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.mobile-menu-trigger {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--glass);
  color: var(--text-2);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.22rem;
  cursor: pointer;
  transition:
    border-color var(--transition),
    background var(--transition),
    transform var(--transition);
}
.mobile-menu-trigger:hover,
.mobile-menu-trigger--active {
  border-color: var(--border-bright);
  background: var(--glass-hover);
}
.mobile-menu-trigger span {
  width: 0.95rem;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform var(--transition),
    opacity var(--transition);
}
.mobile-menu-trigger--active span:nth-child(1) {
  transform: translateY(0.23rem) rotate(45deg);
}
.mobile-menu-trigger--active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-trigger--active span:nth-child(3) {
  transform: translateY(-0.23rem) rotate(-45deg);
}
.mobile-menu-backdrop {
  position: fixed;
  inset: 4.2rem 0 0;
  border: none;
  background: #05050f80;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 90;
}
.mobile-menu {
  position: fixed;
  top: 4.75rem;
  left: 0.75rem;
  right: 0.75rem;
  padding: 0.9rem;
  z-index: 105;
}
.mobile-menu-user {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-bottom: 0.8rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}
.mobile-menu-user-label {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
}
.mobile-menu-user-name {
  font-size: 0.84rem;
  color: var(--text-2);
}
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.mobile-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.8rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text-2);
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  transition:
    border-color var(--transition),
    background var(--transition),
    color var(--transition);
}
.mobile-menu-link:hover {
  color: var(--text);
  background: var(--glass-hover);
  text-decoration: none;
}
.mobile-menu-link--active {
  color: var(--text);
  background: var(--accent-dim);
  border-color: #ffffff2e;
}
.mobile-menu-footer {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}
.mobile-menu-auth {
  display: flex;
  gap: 0.55rem;
}
.mobile-menu-auth > * {
  flex: 1;
}
.mobile-menu-auth-btn {
  width: 100%;
  justify-content: center;
}
@media (max-width: 860px) {
  .navbar-links {
    display: none;
  }
  .mobile-menu-trigger {
    display: inline-flex;
  }
  .navbar-user .btn,
  .navbar-auth,
  .brand-text {
    display: none;
  }
  .navbar-inner {
    gap: 0.75rem;
  }
  .navbar-actions {
    gap: 0.45rem;
  }
  .theme-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .navbar-inner {
    gap: 0.4rem;
  }
  .navbar-username {
    display: none;
  }
  .navbar-actions {
    gap: 0.3rem;
  }
  .theme-trigger {
    padding: 0.35rem 0.5rem;
  }
  .theme-popover {
    right: -2.8rem;
    width: min(18rem, calc(100vw - 1rem));
  }
}
@media (max-width: 420px) {
  .navbar-inner {
    gap: 0.3rem;
  }
  .navbar-actions {
    gap: 0.2rem;
  }
  .brand-image {
    width: 1.5rem;
    height: 1.5rem;
  }
  .theme-trigger {
    padding: 0.32rem 0.42rem;
  }
  .mobile-menu-trigger {
    width: 2.35rem;
    height: 2.35rem;
  }
  .theme-trigger-dot {
    width: 0.6rem;
    height: 0.6rem;
  }
}
.footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--glass-card);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 0.75rem 1.5rem;
  min-height: 2.8rem;
  flex-wrap: wrap;
}
.footer-build {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  cursor: default;
}
.footer-build--loading {
  opacity: 0.5;
  pointer-events: none;
}
.footer-build-label {
  color: var(--text-3);
  font-weight: 500;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer-build-value {
  color: var(--text-2);
  font-size: 0.76rem;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-build-value:hover {
  color: var(--accent);
  text-decoration: underline;
}
.footer-build-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%);
  background: var(--popover-ring-bg);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  padding: 0.55rem 0.75rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.18s ease,
    visibility 0.18s ease,
    transform 0.18s ease;
  z-index: 200;
  box-shadow: 0 4px 16px #00000080;
  transform: translate(-50%) translateY(4px);
}
.footer-build-tooltip:after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%);
  border: 5px solid transparent;
  border-top-color: var(--border-bright);
}
.footer-build:hover .footer-build-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%) translateY(0);
}
.footer-build:focus-within .footer-build-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%) translateY(0);
}
.footer-build-tooltip-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.15rem 0;
}
.footer-build-tooltip-row + .footer-build-tooltip-row {
  border-top: 1px solid var(--border);
  margin-top: 0.15rem;
  padding-top: 0.25rem;
}
.footer-build-tooltip-label {
  color: var(--text-3);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  min-width: 6.5rem;
}
.footer-build-tooltip-value {
  color: var(--text);
  font-size: 0.76rem;
}
@media (max-width: 420px) {
  .footer-inner {
    gap: 0.75rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .footer-build-tooltip {
    display: none;
  }
}
.first-visit-notice-layer {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.first-visit-notice-backdrop {
  position: absolute;
  inset: 0;
  background: #000000ad;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.first-visit-notice {
  position: relative;
  width: min(100%, 520px);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  padding: 1.5rem;
  border-color: #fbbf2457;
}
.first-visit-notice-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.first-visit-notice-label {
  width: fit-content;
  color: var(--warn);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
}
.first-visit-notice h2 {
  color: var(--text);
  font-family: var(--font-ui);
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  line-height: 1.4;
}
.first-visit-notice-description {
  margin-top: 1.25rem;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.7;
}
.first-visit-notice-report {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.75rem;
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.7;
}
.first-visit-notice-report a {
  font-family: var(--font-mono);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.first-visit-notice-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
}
.first-visit-notice-confirm {
  min-width: 112px;
  justify-content: center;
}
@media (max-width: 575px) {
  .first-visit-notice {
    padding: 1.25rem;
  }
  .first-visit-notice-confirm {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .first-visit-notice,
  .first-visit-notice-backdrop {
    transition: none;
  }
}
.gocaptcha-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: #03030ac7;
  backdrop-filter: blur(8px);
}
.gocaptcha-dialog {
  position: relative;
  width: min(100%, 380px);
  padding: 1.5rem 1.25rem 1.25rem;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-xl);
  background: #0f0f19f5;
  box-shadow:
    var(--shadow-card),
    0 0 36px var(--accent-glow);
  color: var(--text);
}
.gocaptcha-dialog h2 {
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
}
.gocaptcha-dialog > p {
  margin-bottom: 1rem;
  color: var(--text-2);
  font-size: 0.9rem;
}
.gocaptcha-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}
.gocaptcha-close:hover {
  color: var(--text);
}
.gocaptcha-widget-shell {
  --go-captcha-theme-text-color: #333333;
  --go-captcha-theme-bg-color: #ffffff;
  --go-captcha-theme-btn-color: #ffffff;
  --go-captcha-theme-btn-disabled-color: #749ff9;
  --go-captcha-theme-btn-bg-color: #4e87ff;
  --go-captcha-theme-btn-border-color: #4e87ff;
  --go-captcha-theme-active-color: #3e7cff;
  --go-captcha-theme-border-color: rgba(206, 223, 254, 0.5);
  --go-captcha-theme-icon-color: #3c3c3c;
  --go-captcha-theme-drag-bar-color: #e0e0e0;
  --go-captcha-theme-drag-bg-color: #3e7cff;
  --go-captcha-theme-drag-icon-color: #ffffff;
  --go-captcha-theme-round-color: #e0e0e0;
  --go-captcha-theme-loading-icon-color: #3e7cff;
  --go-captcha-theme-body-bg-color: #34383e;
  --go-captcha-theme-dot-color: #cedffe;
  --go-captcha-theme-dot-bg-color: #3e7cff;
  --go-captcha-theme-dot-border-color: #f7f9fb;
  --go-captcha-theme-default-color: #3e7cff;
  --go-captcha-theme-default-bg-color: #ecf5ff;
  --go-captcha-theme-default-border-color: #3e7cff;
  --go-captcha-theme-default-hover-color: #e0efff;
  --go-captcha-theme-error-color: #ed4630;
  --go-captcha-theme-error-bg-color: #fef0f0;
  --go-captcha-theme-error-border-color: #ff5a34;
  --go-captcha-theme-warn-color: #ffa000;
  --go-captcha-theme-warn-bg-color: #fdf6ec;
  --go-captcha-theme-warn-border-color: #ffbe09;
  --go-captcha-theme-success-color: #5eaa2f;
  --go-captcha-theme-success-bg-color: #f0f9eb;
  --go-captcha-theme-success-border-color: #8bc640;
  display: grid;
  place-items: center;
  min-height: 280px;
  overflow-x: auto;
  color: #333;
  font-family: system-ui, sans-serif;
}
.gocaptcha-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  color: var(--text-2);
  font-size: 0.9rem;
}
.gocaptcha-dialog .alert {
  margin-top: 1rem;
}
@media (max-width: 360px) {
  .gocaptcha-dialog {
    padding-inline: 0.75rem;
  }
}
.fetch-panel {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.fetch-panel-header {
  text-align: center;
  margin-bottom: 0.1rem;
}
.fetch-panel-title {
  font-family: var(--font-ui);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.fetch-panel-sub {
  font-size: 0.85rem;
  color: var(--text-3);
}
.fetch-panel-links {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 0.45rem;
  font-size: 0.82rem;
}
.fetch-panel-links a {
  color: var(--accent);
  text-decoration: none;
}
.fetch-panel-links a:hover {
  text-decoration: underline;
}
.fetch-btn {
  width: 100%;
  justify-content: center;
  padding: 0.78rem;
  font-size: 0.95rem;
  border-radius: var(--radius-lg);
  animation: pulse-glow 3s ease-in-out infinite;
  will-change: box-shadow;
}
.fetch-btn-icon {
  font-size: 0.7rem;
}
.fetch-hint {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-3);
}
.result-card {
  background: #0f0f1999;
  backdrop-filter: var(--blur);
  border: 1px solid hsla(var(--theme-h), var(--theme-s), var(--theme-l), 0.12);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  box-shadow: 0 0 18px
    hsla(var(--theme-h), var(--theme-s), var(--theme-l), 0.04);
}
.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.result-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.result-field {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  margin-bottom: 0.6rem;
}
.result-field-label {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
}
.result-field-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff0d;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.52rem 0.82rem;
}
.result-field-value .mono {
  font-size: 0.875rem;
  color: var(--text);
  word-break: break-all;
}
.result-disclaimer {
  font-size: 0.72rem;
  color: var(--text-3);
  margin-top: 0.6rem;
  text-align: center;
}
.api-section {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.1rem;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}
.api-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 0.4rem;
}
.api-section-desc {
  font-size: 0.8rem;
  color: var(--text-3);
  line-height: 1.6;
}
.api-section-desc code {
  background: #ffffff12;
  padding: 1px 5px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.home-page {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.home-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}
.home-card {
  width: 100%;
  max-width: 460px;
  padding: 2rem 1.75rem;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  will-change: transform;
}
.auth-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  position: relative;
}
.auth-bg-orb {
  position: fixed;
  top: 15%;
  left: 50%;
  transform: translate(-50%);
  width: 480px;
  height: 480px;
  background: radial-gradient(ellipse, var(--accent2-dim) 0%, transparent 70%);
  pointer-events: none;
}
.auth-card {
  width: 100%;
  max-width: 400px;
  padding: 2rem 1.75rem;
  position: relative;
  z-index: 1;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  will-change: transform;
}
.auth-logo {
  font-size: 1.8rem;
  color: var(--accent);
  text-align: center;
  filter: drop-shadow(0 0 10px var(--accent-glow));
  margin-bottom: 0.4rem;
}
.auth-title {
  font-family: var(--font-ui);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.auth-sub {
  font-size: 0.85rem;
  color: var(--text-3);
  text-align: center;
  margin-bottom: 1.6rem;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.auth-submit {
  width: 100%;
  justify-content: center;
  padding: 0.72rem;
  font-size: 0.95rem;
  margin-top: 0.65rem;
  border-radius: var(--radius-lg);
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.1rem 0;
  color: var(--text-3);
  font-size: 0.78rem;
  font-family: var(--font-ui);
}
.auth-divider:before,
.auth-divider:after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.social-btns {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.social-btn {
  width: 100%;
  justify-content: center;
  gap: 0.55rem;
}
.auth-footer {
  margin-top: 1.4rem;
  text-align: center;
  font-size: 0.83rem;
  color: var(--text-3);
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.auth-success {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}
.auth-success-icon {
  font-size: 2.8rem;
  line-height: 1;
}
.auth-success p {
  color: var(--text-2);
  font-size: 0.88rem;
  line-height: 1.65;
}
.profile-page {
  padding-top: 1.3rem;
  padding-bottom: 4rem;
}
.profile-shell {
  background: var(--glass-card);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding-bottom: 1.5rem !important;
  will-change: transform;
}
.profile-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 0 1.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}
.profile-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-foreground);
  flex-shrink: 0;
  box-shadow: 0 0 18px var(--accent-glow);
}
.profile-identity {
  flex: 1;
  min-width: 160px;
}
.profile-name {
  font-family: var(--font-ui);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.profile-meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.profile-email {
  font-size: 0.8rem;
  color: var(--text-3);
}
.profile-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.6rem;
}
.profile-tab {
  position: relative;
  padding: 0.55rem 1rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-3);
  transition: color var(--transition);
}
.profile-tab:hover {
  color: var(--text-2);
}
.profile-tab--active {
  color: var(--accent);
}
.profile-tab-bar {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 99px 99px 0 0;
  box-shadow: 0 0 7px var(--accent-glow);
}
.section-title {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  margin-bottom: 0.85rem;
}
.section-subtitle {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  margin-bottom: 0.65rem;
}
.section-desc {
  font-size: 0.83rem;
  color: var(--text-3);
}
.info-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.info-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0.85rem;
  background: var(--glass);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.info-label {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
  min-width: 72px;
  flex-shrink: 0;
}
.info-value {
  font-size: 0.875rem;
  color: var(--text-2);
}
.social-bindings {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.social-binding {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 0.9rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  will-change: transform;
}
.social-binding--bound {
  border-color: #34d3992e;
}
.social-binding-icon {
  font-size: 1rem;
  width: 24px;
  text-align: center;
}
.social-binding-name {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-2);
}
.social-binding-status {
  font-size: 0.75rem;
  color: var(--text-3);
}
.qq-bind-code {
  padding: 0.85rem 0.95rem;
  background: var(--glass);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.qq-bind-code-value {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 1.35rem;
  letter-spacing: 0.28em;
  font-weight: 700;
  color: var(--text-1);
}
.qq-bind-code-hint {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  color: var(--text-3);
}
.qq-bind-code-hint code {
  font-family: var(--font-mono, ui-monospace, monospace);
}
.key-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.85rem;
  overflow: hidden;
}
.key-value {
  font-size: 0.8rem;
  color: var(--text-2);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.key-stats {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.key-stat {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.key-stat-val {
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent);
}
.key-stat-key {
  font-size: 0.68rem;
  color: var(--text-3);
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.code-block {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem;
  margin-bottom: 0.5rem;
}
.code-block pre {
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.7;
  white-space: pre-wrap;
}
.passkey-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.passkey-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 0.9rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.passkey-icon {
  font-size: 1.1rem;
}
.passkey-name {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-2);
}
.passkey-date {
  font-size: 0.73rem;
  color: var(--text-3);
}
.copy-btn {
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition:
    color var(--transition),
    background var(--transition);
}
.copy-btn:hover {
  color: var(--accent);
  background: var(--accent-dim);
}
.coin-view-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.coin-view-tab {
  padding: 0.5rem 0.9rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-3);
  transition: all var(--transition);
}
.coin-view-tab:hover {
  color: var(--text-2);
  border-color: hsla(var(--theme-h), var(--theme-s), var(--theme-l), 0.15);
}
.coin-view-tab--active {
  background: linear-gradient(
    135deg,
    hsla(var(--theme-h), var(--theme-s), var(--theme-l), 0.08),
    hsla(calc(var(--theme-h) + 12), 86%, 74%, 0.06)
  );
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 7px var(--accent-glow);
}
.coin-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}
.balance-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 0;
}
.balance-label {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
}
.balance-value {
  font-size: 3rem;
  font-weight: 800;
  background: var(--accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.balance-unit {
  font-size: 0.9rem;
  color: var(--text-2);
  font-weight: 600;
}
.coin-form-group {
  margin-bottom: 1rem;
}
.coin-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
  margin-bottom: 0.4rem;
}
.coin-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  color: var(--text-2);
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}
.coin-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 7px var(--accent-glow);
}
.coin-input::placeholder {
  color: var(--text-3);
}
.coin-hint {
  font-size: 0.75rem;
  color: var(--text-3);
  margin-top: 0.35rem;
}
.recharge-method-fieldset {
  min-width: 0;
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}
.recharge-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}
.recharge-method {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--glass);
  color: var(--text-2);
  text-align: left;
  cursor: pointer;
  transition:
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}
.recharge-method:hover {
  border-color: hsla(var(--theme-h), var(--theme-s), var(--theme-l), 0.35);
}
.recharge-method:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.recharge-method:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
.recharge-method--active {
  border-color: var(--accent);
  background: hsla(var(--theme-h), var(--theme-s), var(--theme-l), 0.08);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.recharge-method-title {
  font-size: 0.86rem;
  font-weight: 700;
}
.recharge-method-description {
  color: var(--text-3);
  font-size: 0.7rem;
  line-height: 1.4;
}
.recharge-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.recharge-input {
  padding-left: 2rem;
  padding-right: 3.6rem;
  font-family: var(--font-mono);
}
.recharge-input-prefix,
.recharge-input-unit {
  position: absolute;
  z-index: 1;
  color: var(--text-3);
  pointer-events: none;
}
.recharge-input-prefix {
  left: 0.85rem;
}
.recharge-input-unit {
  right: 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
}
.recharge-preview {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.recharge-preview-label {
  display: block;
  color: var(--text-3);
  font-size: 0.72rem;
  margin-bottom: 0.15rem;
}
.recharge-preview-value {
  display: block;
  color: var(--success);
  font-family: var(--font-mono);
  font-size: 1.35rem;
  line-height: 1.25;
}
.recharge-preview-value small {
  font-size: 0.72rem;
  color: var(--text-3);
}
.recharge-preview-cny {
  color: var(--text-3);
  font-size: 0.78rem;
  white-space: nowrap;
}
.recharge-rate {
  margin-top: 0.65rem;
}
.recharge-order {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.recharge-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.recharge-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--warn);
  font-size: 0.9rem;
  font-weight: 700;
}
.recharge-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  flex-shrink: 0;
}
.recharge-status--paid {
  color: var(--success);
}
.recharge-status--create_failed,
.recharge-status--expired {
  color: var(--danger);
}
.recharge-status--paid_after_expiration {
  color: var(--warn);
}
.recharge-status-note {
  color: var(--text-2);
  font-size: 0.82rem;
  line-height: 1.55;
  margin-top: -0.25rem;
}
.recharge-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.recharge-details .info-value {
  overflow-wrap: anywhere;
}
.recharge-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
@media (max-width: 520px) {
  .recharge-methods {
    grid-template-columns: 1fr;
  }
  .recharge-preview {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }
  .recharge-actions .btn {
    flex: 1;
    justify-content: center;
  }
}
.transaction-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.transaction-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.9rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.transaction-item:hover {
  border-color: hsla(var(--theme-h), var(--theme-s), var(--theme-l), 0.15);
}
.transaction-info {
  flex: 1;
}
.transaction-type {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-2);
  margin-bottom: 0.2rem;
}
.transaction-desc {
  font-size: 0.75rem;
  color: var(--text-3);
}
.transaction-amount {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.9rem;
  margin-left: 1rem;
  flex-shrink: 0;
}
.transaction-amount.positive {
  color: #34d399;
}
.transaction-amount.negative {
  color: #f87171;
}
.history-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.9rem;
  flex-wrap: wrap;
}
.history-pagination-size {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-right: auto;
}
.history-pagination-size-label,
.history-pagination-label {
  font-size: 0.8rem;
  color: var(--text-3);
}
.history-page-size-select {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-2);
  font-size: 0.8rem;
  padding: 0.28rem 0.5rem;
}
.history-page-size-select:focus {
  outline: none;
  border-color: var(--accent);
}
.history-pagination-jump {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.history-page-jump-input {
  width: 4.8rem;
  padding: 0.28rem 0.5rem;
  font-size: 0.82rem;
  text-align: center;
}
.history-page-jump-input::-webkit-outer-spin-button,
.history-page-jump-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.history-page-jump-input {
  -moz-appearance: textfield;
}
.tab-pane {
  animation-name: fadeUp;
  animation-duration: 0.3s;
  animation-timing-function: ease-out;
}
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.anim-fade-up {
  animation-name: fadeUp;
  animation-duration: 0.3s;
  animation-timing-function: ease-out;
}
.convert-page {
  padding-top: 1.3rem;
  padding-bottom: 4rem;
}
.section-title {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
}
.convert-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  align-items: start;
  margin-top: 1.75rem;
}
@media (max-width: 680px) {
  .convert-layout {
    grid-template-columns: 1fr;
  }
}
.convert-result-panel {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  will-change: transform;
}
.convert-form-card {
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  will-change: transform;
}
.convert-empty {
  text-align: center;
  padding: 2.25rem 1rem;
  color: var(--text-3);
}
.convert-empty-icon {
  font-size: 2.2rem;
  margin-bottom: 0.65rem;
  opacity: 0.35;
}
.convert-empty p {
  font-size: 0.875rem;
}
.convert-processing {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-3);
  font-size: 0.875rem;
}
@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}
.convert-process-ring {
  width: 52px;
  height: 52px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin-slow 1.1s linear infinite;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.convert-process-inner {
  font-size: 1.1rem;
  animation: spin-slow 1.1s linear infinite reverse;
}
.token-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}
.token-display {
  display: block;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  margin: 0.4rem 0 0.5rem;
  overflow: auto;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}
.token-value {
  display: block;
  font-size: 0.78rem;
  color: var(--text-2);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.7;
}
.cookie-convert-page {
  padding-top: 1.3rem;
  padding-bottom: 4rem;
}
.cookie-convert-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  align-items: start;
  margin-top: 1.75rem;
}
.cookie-convert-form-card,
.cookie-convert-result-card {
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}
.cookie-convert-form-card .section-title,
.cookie-convert-result-card .section-title {
  margin-bottom: 1.25rem;
}
.cookie-convert-note {
  margin-bottom: 0.9rem;
  color: var(--text-3);
  font-size: 0.8rem;
  line-height: 1.6;
}
.cookie-convert-submit {
  width: 100%;
  justify-content: center;
  padding: 0.75rem;
}
.cookie-convert-empty,
.cookie-convert-processing {
  display: flex;
  min-height: 12rem;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 0.875rem;
  text-align: center;
}
.cookie-convert-processing {
  gap: 0.6rem;
}
.cookie-convert-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.cookie-convert-output {
  max-height: 23rem;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--glass);
  padding: 0.75rem 0.9rem;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}
@media (max-width: 680px) {
  .cookie-convert-layout {
    grid-template-columns: 1fr;
  }
}
.used-alts-page {
  padding-top: 1.3rem;
  padding-bottom: 4rem;
}
.section-title {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  margin: 0;
}
.used-alts-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.used-alts-subtitle {
  font-size: 0.8rem;
  color: var(--text-3);
  margin: 0.35rem 0 0;
}
.used-alts-filters {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.used-alts-filters .input-field {
  flex: 1 1 180px;
  min-width: 140px;
}
.tab-loading {
  display: flex;
  justify-content: center;
  padding: 2rem;
}
.empty-hint {
  color: var(--text-3);
  font-size: 0.875rem;
  padding: 0.75rem 0;
}
.used-alts-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--glass);
}
.used-alts-scroll-hint {
  display: none;
}
.used-alts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 640px;
}
.used-alts-table thead th {
  text-align: left;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.used-alts-table tbody td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: middle;
}
.used-alts-table tbody tr:last-child td {
  border-bottom: none;
}
.used-alts-table tbody tr {
  transition: background var(--transition);
}
.used-alts-table tbody tr:hover {
  background: var(--accent-dim);
}
.used-alts-password {
  letter-spacing: 0.05em;
  color: var(--text-3);
}
.used-alts-muted {
  color: var(--text-3);
}
.used-alts-actions-col {
  white-space: nowrap;
}
.used-alts-actions {
  display: flex;
  gap: 0.35rem;
}
.used-alts-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.1rem;
}
.used-alts-page-info {
  font-size: 0.82rem;
  color: var(--text-2);
}
@media (max-width: 640px) {
  .used-alts-scroll-hint {
    display: block;
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-3);
    font-size: 0.75rem;
  }
  .used-alts-header {
    flex-direction: column;
    gap: 0.75rem;
  }
  .used-alts-header .btn {
    align-self: stretch;
    justify-content: center;
  }
}
.recharge-orders-page {
  padding-top: 1rem;
  padding-bottom: 3rem;
}
.recharge-orders-loading {
  display: flex;
  align-items: center;
  justify-content: center;
}
.recharge-orders-return-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.recharge-orders-return {
  display: flex;
  width: min(100%, 28rem);
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  text-align: center;
}
.recharge-orders-return h1 {
  font-family: var(--font-ui);
  font-size: 1.5rem;
}
.recharge-orders-return p {
  color: var(--text-2);
  line-height: 1.6;
}
.recharge-orders-return__fallback {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.5rem;
}
.recharge-orders-shell {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.recharge-orders-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.25rem 0;
}
.recharge-orders-eyebrow {
  color: var(--accent);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.recharge-orders-hero h1 {
  margin-top: 0.25rem;
  font-family: var(--font-ui);
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
}
.recharge-orders-hero p:last-child {
  margin-top: 0.35rem;
  color: var(--text-2);
  font-size: 0.95rem;
}
.recharge-orders-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}
.recharge-orders-summary__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}
.recharge-orders-summary__item span {
  color: var(--text-2);
  font-size: 0.875rem;
}
.recharge-orders-summary__item strong {
  color: var(--text);
  font-size: 1rem;
}
.recharge-orders-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.85rem;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}
.recharge-orders-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.recharge-provider-tabs {
  display: flex;
  gap: 0.25rem;
  width: 100%;
  padding: 0.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--glass);
}
.recharge-provider-tab {
  flex: 1;
  min-height: 2.25rem;
  padding: 0.35rem 0.65rem;
  border: none;
  border-radius: calc(var(--radius) - 2px);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  transition:
    background var(--transition),
    color var(--transition);
}
.recharge-provider-tab:hover {
  color: var(--text);
}
.recharge-provider-tab--active {
  background: var(--accent-dim);
  color: var(--text);
}
.recharge-orders-filter {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.recharge-orders-filter label {
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 600;
}
.recharge-orders-filter .input-field {
  flex: 1 1 9rem;
  min-width: 0;
}
.recharge-orders-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.recharge-order-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--glass);
  transition:
    border-color var(--transition),
    background var(--transition);
}
.recharge-order-card:hover {
  border-color: var(--border-bright);
  background: var(--glass-hover);
}
.recharge-order-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
}
.recharge-order-card__provider {
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 700;
}
.recharge-order-card__created {
  margin-top: 0.15rem;
  color: var(--text-2);
  font-size: 0.875rem;
}
.recharge-order-status {
  flex-shrink: 0;
  padding: 0.25rem 0.55rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.35;
}
.recharge-order-status--pending {
  color: var(--accent);
}
.recharge-order-status--paid {
  color: var(--success);
}
.recharge-order-status--attention {
  color: var(--warn);
}
.recharge-order-status--failed {
  color: var(--danger);
}
.recharge-order-card__amounts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}
.recharge-order-card__amounts > div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius);
  background: var(--bg-1);
}
.recharge-order-card__amounts span,
.recharge-order-card__details dt {
  color: var(--text-2);
  font-size: 0.875rem;
}
.recharge-order-card__amounts strong {
  color: var(--text);
  font-size: 0.95rem;
}
.recharge-order-card__details {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.recharge-order-card__details > div {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.6rem;
  align-items: baseline;
}
.recharge-order-card__details dd {
  min-width: 0;
  color: var(--text-2);
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}
.recharge-order-card__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
}
.recharge-orders-state,
.recharge-orders-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 9rem;
  color: var(--text-2);
  text-align: center;
}
.recharge-orders-state {
  flex-direction: row;
}
.recharge-orders-empty h3 {
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 1rem;
}
.recharge-orders-empty p {
  max-width: 28rem;
  font-size: 0.875rem;
}
.recharge-orders-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding-top: 0.25rem;
}
.recharge-orders-pagination span {
  color: var(--text-2);
  font-size: 0.875rem;
}
@media (min-width: 560px) {
  .recharge-orders-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .recharge-order-card__amounts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 760px) {
  .recharge-orders-hero {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
  .recharge-orders-panel {
    padding: 1rem;
  }
  .recharge-orders-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .recharge-provider-tabs {
    width: auto;
  }
  .recharge-provider-tab {
    flex: 0 0 auto;
  }
  .recharge-orders-filter .input-field {
    flex: 0 0 9.5rem;
  }
}
@media (max-width: 420px) {
  .recharge-order-card__header {
    flex-direction: column;
  }
  .recharge-order-card__actions .btn {
    flex: 1;
    justify-content: center;
  }
}
:root {
  --theme-h: 267;
  --theme-s: 100%;
  --theme-l: 67%;
  --bg: #0a0a14;
  --navbar-bg: rgba(8, 8, 18, 0.75);
  --popover-ring-bg: rgba(8, 8, 18, 0.95);
  --bg-1: rgba(255, 255, 255, 0.045);
  --bg-2: rgba(255, 255, 255, 0.07);
  --bg-3: rgba(255, 255, 255, 0.1);
  --border: hsla(var(--theme-h), 30%, 72%, 0.12);
  --border-bright: hsla(var(--theme-h), 40%, 72%, 0.28);
  --accent: hsl(var(--theme-h), var(--theme-s), var(--theme-l));
  --accent-dim: hsla(var(--theme-h), var(--theme-s), var(--theme-l), 0.15);
  --accent-glow: hsla(var(--theme-h), var(--theme-s), var(--theme-l), 0.35);
  --accent-hover: hsl(
    var(--theme-h),
    var(--theme-s),
    calc(var(--theme-l) + 4%)
  );
  --accent-foreground: #000;
  --accent2: hsl(calc(var(--theme-h) + 12), 86%, 74%);
  --accent2-dim: hsla(calc(var(--theme-h) + 12), 86%, 74%, 0.12);
  --danger: #f87171;
  --danger-dim: rgba(248, 113, 113, 0.14);
  --warn: #fbbf24;
  --success: #34d399;
  --success-dim: rgba(52, 211, 153, 0.12);
  --text: #f0f0f5;
  --text-2: #b0b0c0;
  --text-3: #9090a0;
  --font-ui:
    "Plus Jakarta Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei",
    system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", ui-monospace, monospace;
  --font-body:
    "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Plus Jakarta Sans",
    system-ui, sans-serif;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 18px;
  --transition: 0.16s cubic-bezier(0.4, 0, 0.2, 1);
  --glass: rgba(255, 255, 255, 0.05);
  --glass-hover: rgba(255, 255, 255, 0.09);
  --glass-card: rgba(15, 15, 25, 0.6);
  --blur: blur(14px) saturate(1.4);
  --blur-mobile: blur(5px) saturate(1.15);
  --blur-nav: blur(20px) saturate(1.6);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border);
  --glow-sm: 0 0 10px var(--accent-glow);
  --glow: 0 0 24px var(--accent-glow);
}
*,
*:before,
*:after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
.bg-background {
  background-color: var(--bg);
}
body {
  background-color: var(--bg);
  background-image: url(https://random-bg.guimc.ltd/bg/random);
  background-position: center center;
  background-repeat: repeat;
  background-size: cover;
  background-attachment: fixed;
  image-rendering: auto;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  background: #00000085;
  pointer-events: none;
  z-index: 0;
}
body:after {
  content: "";
  position: fixed;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
  z-index: 0;
}
@media (hover: none), (max-width: 768px) {
  :root {
    --blur: var(--blur-mobile);
    --blur-nav: blur(10px) saturate(1.3);
  }
  body {
    background-attachment: scroll;
    background-size: cover;
    background-position: center center;
  }
  body:before {
    position: absolute;
    inset: 0;
    min-height: 100%;
  }
  body:after {
    position: absolute;
    inset: 0;
    min-height: 100%;
  }
}
#root {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
.app-layout {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}
#main-content {
  flex: 1;
  width: 100%;
  padding-top: 4.2rem;
  display: flex;
  flex-direction: column;
}
a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}
button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: hsla(var(--theme-h), var(--theme-s), var(--theme-l), 0.3);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}
.mono {
  font-family: var(--font-mono);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.card {
  background: var(--glass-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.3rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 14px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 22px var(--accent-glow);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-ghost {
  background: var(--glass);
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--border-bright);
  color: var(--text);
  background: var(--glass-hover);
}
.btn-danger {
  background: #f871712e;
  color: var(--danger);
  border: 1px solid rgba(248, 113, 113, 0.3);
}
.btn-danger:hover {
  background: #f8717147;
  transform: translateY(-1px);
}
.btn-sm {
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
}
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
.input-field {
  width: 100%;
  background: #ffffff0f;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.95rem;
  color: var(--text);
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
  outline: none;
  font-family: var(--font-body);
}
.input-field:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
  background: hsla(var(--theme-h), var(--theme-s), var(--theme-l), 0.05);
}
.input-field::placeholder {
  color: var(--text-3);
}
.label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.4rem;
}
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-foreground);
  transform: translateY(-160%);
  transition: transform var(--transition);
}
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--text);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
.form-group {
  margin-bottom: 1rem;
}
.alert {
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  font-size: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.alert-error {
  background: var(--danger-dim);
  border: 1px solid rgba(248, 113, 113, 0.22);
  color: #fca5a5;
}
.alert-success {
  background: var(--success-dim);
  border: 1px solid rgba(52, 211, 153, 0.22);
  color: #6ee7b7;
}
.alert-info {
  background: var(--accent-dim);
  border: 1px solid hsla(var(--theme-h), var(--theme-s), var(--theme-l), 0.22);
  color: hsl(var(--theme-h), 100%, 82%);
}
.alert-warn {
  background: #fbbf241a;
  border: 1px solid rgba(251, 191, 36, 0.22);
  color: #fde68a;
}
.page {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.page-loading {
  min-height: 16rem;
  align-items: center;
  justify-content: center;
}
.container,
.container-wide {
  width: 100%;
}
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
@media (max-width: 860px) {
  .container,
  .container-wide {
    padding: 0 1rem;
  }
}
.spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  flex-shrink: 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 99px;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.badge-blue {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid hsla(var(--theme-h), var(--theme-s), var(--theme-l), 0.22);
}
.badge-green {
  background: var(--success-dim);
  color: var(--success);
  border: 1px solid rgba(52, 211, 153, 0.22);
}
.badge-red {
  background: var(--danger-dim);
  color: var(--danger);
  border: 1px solid rgba(248, 113, 113, 0.22);
}
.badge-yellow {
  background: #fbbf241a;
  color: var(--warn);
  border: 1px solid rgba(251, 191, 36, 0.22);
}
.divider {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 1.4rem 0;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
th {
  text-align: left;
  padding: 0.55rem 1rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
}
td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
}
tr:hover td {
  background: var(--glass);
}
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulse-glow {
  0%,
  to {
    box-shadow: 0 2px 14px var(--accent-glow);
  }
  50% {
    box-shadow: 0 4px 28px var(--accent-glow);
  }
}
.anim-fade-up {
  animation: fadeUp 0.38s ease both;
}
.anim-fade-in {
  animation: fadeIn 0.28s ease both;
}
.anim-delay-1 {
  animation-delay: 0.05s;
}
.anim-delay-2 {
  animation-delay: 0.1s;
}
.anim-delay-3 {
  animation-delay: 0.15s;
}
.anim-delay-4 {
  animation-delay: 0.2s;
}
