.app-phone {
  width: min(100%, var(--phone));
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background: var(--dash-glow), var(--color-navy);
  overflow-x: hidden;
  padding-bottom: 6.25rem;
}

.app-phone--auth {
  padding-bottom: var(--space-6);
  display: flex;
  flex-direction: column;
}

.asset-header {
  position: relative;
  overflow: hidden;
  padding: 0.9rem 1.15rem 1.6rem;
  background: var(--gradient-header);
  border-bottom-left-radius: 1.75rem;
  border-bottom-right-radius: 1.75rem;
  isolation: isolate;
}

.asset-header::before,
.asset-header::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--header-ring);
  pointer-events: none;
  z-index: 0;
}

.asset-header::before {
  width: 22rem;
  height: 22rem;
  right: -6rem;
  top: -8rem;
  box-shadow: 0 0 0 2.4rem var(--header-ring-soft),
    0 0 0 4.8rem var(--header-ring-soft);
}

.asset-header::after {
  width: 16rem;
  height: 16rem;
  left: -5rem;
  bottom: -7rem;
  border-color: rgba(0, 212, 212, 0.08);
}

.asset-header__top,
.asset-header__row,
.asset-header__amount {
  position: relative;
  z-index: 1;
}

.asset-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: 1.15rem;
}

.asset-header__icons {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.icon-btn {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(247, 243, 235, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-ivory);
  cursor: pointer;
  padding: 0;
}

.icon-btn svg {
  width: 1.15rem;
  height: 1.15rem;
}

.icon-btn--solid {
  background: var(--gradient-coral);
  border-color: transparent;
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
}

.asset-header__label {
  margin: 0 0 0.35rem;
  font-size: var(--text-sm);
  color: var(--color-ivory-mute);
  font-weight: 500;
}

.asset-header__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
}

.asset-header__amount {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-currency);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.asset-header__eye {
  width: 1.85rem;
  height: 1.85rem;
  border: 0;
  background: transparent;
  color: var(--color-ivory-mute);
  cursor: pointer;
  padding: 0;
}

.asset-header__eye svg {
  width: 1.2rem;
  height: 1.2rem;
}

.asset-header__cta {
  display: flex;
  gap: 0.45rem;
  flex-shrink: 0;
}

.asset-header__cta .btn {
  min-height: 2.35rem;
  padding: 0.4rem 1rem;
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}

.sheet.is-open {
  pointer-events: auto;
}

.sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 16, 24, 0.62);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.sheet.is-open .sheet__backdrop {
  opacity: 1;
}

.sheet__panel {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(100%, var(--phone));
  transform: translate(-50%, -105%);
  max-width: var(--phone);
  background: var(--menu-bg);
  border-bottom-left-radius: 1.5rem;
  border-bottom-right-radius: 1.5rem;
  border: 1px solid var(--border);
  padding: 1.25rem 1.15rem 1.5rem;
  transition: transform 0.3s var(--ease-out);
}

.sheet.is-open .sheet__panel {
  transform: translate(-50%, 0);
}

.sheet__panel a,
.sheet__panel button.sheet__link {
  display: flex;
  width: 100%;
  text-align: left;
  padding: 0.85rem 0.4rem;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--color-ivory);
  font-weight: 600;
  cursor: pointer;
}

.sheet__panel a:last-child,
.sheet__panel form:last-child .sheet__link {
  border-bottom: 0;
}

.action-card {
  margin: -1.15rem 0.9rem 0;
  position: relative;
  z-index: 2;
  background: var(--action-bg);
  border: 1px solid var(--border);
  border-radius: 1.35rem;
  padding: 0.85rem 0.5rem 1rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.action-card__note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0.65rem 0.85rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--border-soft);
  color: var(--color-ivory-dim);
  font-size: var(--text-xs);
}

.action-card__note svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.25rem;
}

.action-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--color-ivory-dim);
  text-align: center;
}

.action-grid__icon {
  width: 2.55rem;
  height: 2.55rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--border);
  color: var(--color-ivory);
}

.action-grid__icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.page-pad {
  padding: 1.1rem 0.9rem 0;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: 0.65rem;
}

.section-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.section-head a {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ivory-dim);
}

.news-list {
  display: flex;
  flex-direction: column;
}

.news-item {
  display: block;
  padding: 0.95rem 0.1rem;
  border-bottom: 1px solid var(--border);
}

.news-item:last-child {
  border-bottom: 0;
}

.news-item h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.news-item time {
  font-size: 0.72rem;
  color: var(--color-ivory-mute);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: max(0.85rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(calc(100% - 1.5rem), calc(var(--phone) - 1.5rem));
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.15rem;
  padding: 0.45rem 0.4rem 0.5rem;
  background: var(--bottom-nav-bg);
  color: var(--bottom-nav-muted);
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 30px rgba(4, 16, 24, 0.28);
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--bottom-nav-muted);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.2rem;
}

.bottom-nav a.is-active {
  color: var(--bottom-nav-fg);
}

.bottom-nav a.is-active svg {
  color: var(--color-coral);
}

.bottom-nav svg {
  width: 1.25rem;
  height: 1.25rem;
}

.rate-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 1rem 0.9rem 0;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 183, 0, 0.12);
  border: 1px solid rgba(255, 183, 0, 0.28);
  color: var(--color-gold-soft);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
