.app-main:has(.exr-page) {
  padding: 0 0 calc(16px + var(--safe-bottom));
  background: #020302;
}

body:has(.exr-page) .tabbar {
  display: none !important;
}

.exr-page {
  --ex-bg: #020302;
  --ex-card: rgba(14, 18, 12, 0.72);
  --ex-border: rgba(182, 245, 58, 0.14);
  --ex-accent: #b6f53a;
  --ex-text: #f4f7ef;
  --ex-muted: #8f9688;
  --ex-sub: #8f9688;
  --exr-header-height: 48px;
  position: relative;
  isolation: isolate;
  min-height: 100%;
  min-height: 100dvh;
  padding: 0;
  padding-top: calc(var(--exr-header-height) + var(--safe-top));
  background:
    radial-gradient(120% 70% at 50% -8%, rgba(126, 201, 34, 0.14), transparent 55%),
    linear-gradient(180deg, #050805 0%, #020302 50%, #000 100%);
  color: var(--ex-text);
  font-feature-settings: "tnum" 1;
  box-sizing: border-box;
}

.exr-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.exr-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(42px);
  opacity: 0.48;
  animation: exr-float 10s ease-in-out infinite;
}

.exr-orb-a {
  width: 210px;
  height: 210px;
  top: 8%;
  right: -70px;
  background: radial-gradient(circle, rgba(182, 245, 58, 0.3), transparent 68%);
}

.exr-orb-b {
  width: 240px;
  height: 240px;
  bottom: 18%;
  left: -90px;
  background: radial-gradient(circle, rgba(90, 160, 30, 0.22), transparent 70%);
  animation-delay: -3.5s;
}

.exr-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(182, 245, 58, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(182, 245, 58, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 70%);
  opacity: 0.6;
}

@keyframes exr-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(14px) scale(1.05); }
}

.exr-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 auto !important;
  width: 100%;
  max-width: 480px;
  height: calc(var(--exr-header-height) + var(--safe-top));
  padding: var(--safe-top) 16px 0;
  box-sizing: border-box;
  z-index: 90;
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, rgba(2, 3, 2, 0.94), rgba(2, 3, 2, 0.78) 75%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.exr-back {
  width: 36px;
  height: 36px;
  margin-left: -4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #eef7dc;
  border: 1px solid rgba(182, 245, 58, 0.16);
  background: rgba(182, 245, 58, 0.06);
  text-decoration: none;
  flex-shrink: 0;
}

.exr-back:active {
  background: rgba(182, 245, 58, 0.14);
  color: var(--ex-accent);
}

.exr-title {
  margin: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.03em;
  color: #fff;
}

.exr-header-spacer {
  width: 36px;
  height: 36px;
}

.exr-body {
  position: relative;
  z-index: 1;
  padding: 10px 16px 20px;
  box-sizing: border-box;
}

.exr-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ex-accent);
  background: rgba(182, 245, 58, 0.08);
  border: 1px solid rgba(182, 245, 58, 0.16);
  box-shadow: 0 0 14px rgba(182, 245, 58, 0.08);
}

.exr-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 120px;
}

.exr-list .ex-record-item {
  margin: 0;
  padding: 14px 14px;
  border: 1px solid var(--ex-border);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(182, 245, 58, 0.06), transparent 42%),
    var(--ex-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02) inset,
    0 10px 28px rgba(0, 0, 0, 0.28);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.exr-list .ex-record-item:active {
  border-color: rgba(182, 245, 58, 0.28);
  box-shadow:
    0 0 0 1px rgba(182, 245, 58, 0.08) inset,
    0 0 22px rgba(182, 245, 58, 0.1);
  transform: translateY(1px);
}

.exr-list .ex-pair-icons img,
.exr-list .ex-pair-icons .ex-coin-usdt,
.exr-list .ex-pair-icons .ex-coin-fallback {
  border-radius: 50%;
  border-color: rgba(2, 3, 2, 0.85);
  box-shadow: 0 0 10px rgba(182, 245, 58, 0.12);
}

.exr-list .ex-coin-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  position: absolute;
  top: 3px;
  font-size: 10px;
  font-weight: 700;
  color: #020302;
  background: var(--ex-accent);
}

.exr-list .ex-coin-usdt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #26a17b;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.exr-list .ex-record-empty {
  padding: 48px 16px;
  border: 1px dashed rgba(182, 245, 58, 0.18);
  border-radius: 14px;
  background: rgba(14, 18, 12, 0.45);
  color: var(--ex-muted);
  font-size: 13px;
}

.exr-page .app-list-more {
  color: var(--ex-muted);
}

.app-toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + var(--safe-bottom));
  transform: translateX(-50%) translateY(12px);
  max-width: min(86vw, 360px);
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(10, 14, 8, 0.94);
  border: 1px solid rgba(182, 245, 58, 0.22);
  color: #f2f2f2;
  font-size: 13px;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 240;
  text-align: center;
  box-shadow: 0 0 20px rgba(182, 245, 58, 0.1);
}

.app-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .exr-orb {
    animation: none !important;
  }

  .exr-list .ex-record-item {
    transition: none;
  }
}
