.app-main:has(.app-tab-panel.is-active .arb-page) {
  padding: 0 0 calc(var(--tabbar-height) + var(--safe-bottom));
  background: #020302;
}

.arb-page {
  --arb-bg: #020302;
  --arb-card: rgba(14, 18, 12, 0.72);
  --arb-border: rgba(182, 245, 58, 0.14);
  --arb-accent: #b6f53a;
  --arb-text: #f4f7ef;
  --arb-muted: #8f9688;
  --arb-up: #3ecf8e;
  --arb-down: #ff6b6b;
  --arb-header-height: 48px;
  position: relative;
  isolation: isolate;
  min-height: 100%;
  padding: 0 0 16px;
  padding-top: calc(var(--arb-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(--arb-text);
  font-feature-settings: "tnum" 1;
}

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

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

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

.arb-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;
}

.arb-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 arb-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(14px) scale(1.05); }
}

.arb-header,
.arb-meta,
.arb-table-wrap {
  position: relative;
  z-index: 1;
}

.arb-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 auto !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  max-width: 480px;
  height: calc(var(--arb-header-height) + var(--safe-top));
  padding: var(--safe-top) 16px 0;
  box-sizing: border-box;
  z-index: 90;
  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);
}

.arb-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.arb-logo-wrap {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(182, 245, 58, 0.08);
  border: 1px solid rgba(182, 245, 58, 0.22);
  box-shadow: 0 0 16px rgba(182, 245, 58, 0.16);
  flex-shrink: 0;
}

.arb-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 5px;
}

.arb-brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.arb-lang {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 34px;
  padding: 0 10px;
  border-radius: 11px;
  border: 1px solid rgba(182, 245, 58, 0.14);
  background: rgba(14, 18, 12, 0.75);
  color: var(--arb-text);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.arb-lang img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.arb-lang-caret {
  width: 12px;
  height: 12px;
  color: #cfd8c2;
}

.arb-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 6px 16px 4px;
}

.arb-refresh {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(182, 245, 58, 0.16);
  border-radius: 10px;
  background: rgba(182, 245, 58, 0.06);
  color: var(--arb-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.arb-refresh.is-spinning svg {
  animation: arb-spin 0.8s linear infinite;
}

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

.arb-table-wrap {
  padding: 0 12px;
}

.arb-table-head,
.arb-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) minmax(0, 1fr) 58px;
  column-gap: 6px;
  align-items: center;
  padding-left: 12px;
  padding-right: 12px;
  box-sizing: border-box;
}

.arb-table-head {
  position: sticky;
  top: calc(var(--arb-header-height) + var(--safe-top));
  z-index: 5;
  padding-top: 8px;
  padding-bottom: 8px;
  border-radius: 12px;
  background: rgba(8, 10, 7, 0.92);
  border: 1px solid rgba(182, 245, 58, 0.12);
  backdrop-filter: blur(10px);
}

.arb-table-head .arb-col {
  font-size: 11px;
  color: var(--arb-muted);
  font-weight: 600;
  white-space: nowrap;
}

.arb-col-coin,
.arb-coin {
  justify-self: start;
  min-width: 0;
}

.arb-col-long,
.arb-col-short,
.arb-long,
.arb-short {
  justify-self: stretch;
  min-width: 0;
}

.arb-col-profit,
.arb-profit {
  justify-self: end;
  min-width: 0;
}

.arb-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.arb-row {
  padding-top: 10px;
  padding-bottom: 10px;
  border-radius: 14px;
  border: 1px solid var(--arb-border);
  background:
    linear-gradient(145deg, rgba(182, 245, 58, 0.05), transparent 42%),
    var(--arb-card);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.arb-coin {
  text-align: left;
}

.arb-col-long,
.arb-col-short {
  text-align: center;
}

.arb-col-profit,
.arb-profit {
  text-align: right;
}

.arb-coin-name {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arb-side {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.arb-ex {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  max-width: 100%;
  min-width: 0;
}

.arb-ex-icon,
.arb-ex-fallback {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
}

.arb-ex-icon {
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.arb-ex-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  color: #fff;
  background: #555;
}

.arb-ex-name {
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arb-rate {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
  width: 100%;
  text-align: center;
}

.arb-rate.is-pos {
  color: var(--arb-down);
}

.arb-rate.is-neg {
  color: var(--arb-up);
}

.arb-rate.is-zero {
  color: var(--arb-muted);
}

.arb-profit {
  font-size: 13px;
  font-weight: 700;
  color: var(--arb-accent);
}

.arb-loading,
.arb-empty,
.arb-error {
  padding: 28px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--arb-muted);
  border-radius: 14px;
  border: 1px dashed rgba(182, 245, 58, 0.16);
  background: rgba(14, 18, 12, 0.45);
}

.arb-error {
  color: #ffb4b4;
  line-height: 1.5;
}
