.page-glow {
  position: fixed;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  filter: blur(92px);
  z-index: 0;
  pointer-events: none;
}

.glow-top {
  top: -70px;
  left: -70px;
  background: rgba(255, 196, 118, 0.34);
}

.glow-bottom {
  right: -80px;
  bottom: 40px;
  background: rgba(255, 145, 121, 0.22);
}

.app-frame {
  position: relative;
  z-index: 1;
  height: 100vh;
  height: 100dvh;
  display: flex;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.app-shell {
  width: 100%;
  max-width: var(--shell-max-width);
  height: 100%;
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.82) 0%, rgba(255, 248, 241, 0.92) 100%);
  border: 0;
  border-radius: var(--radius-shell);
  box-shadow: none;
  backdrop-filter: blur(16px);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.screen {
  min-height: 100%;
  height: 100%;
}

.app-screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: calc(8px + var(--safe-top)) 8px calc(8px + var(--safe-bottom));
  overflow: hidden;
}

.app-top {
  display: grid;
  gap: 10px;
  flex: 0 0 auto;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.app-content::-webkit-scrollbar {
  display: none;
}

.page-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
}

.page {
  display: none;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
}

.page.is-active {
  display: flex;
}

.section-card,
.empty-card,
.mini-list,
.search-shell {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft);
}

.section-card,
.empty-card,
.mini-list {
  border-radius: var(--radius-card);
}

.section-card {
  padding: 13px;
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.section-eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  margin-bottom: 4px;
}

.section-header h2,
.empty-card h3 {
  font-size: 1.1rem;
  line-height: 1.16;
  font-weight: 800;
}

.feed-section {
  padding-bottom: 10px;
}

.feed-state {
  display: grid;
  gap: 12px;
}

.bottom-nav {
  position: relative;
  width: 100%;
  background: rgba(255, 252, 247, 0.96);
  border: 1px solid rgba(255, 184, 137, 0.22);
  border-radius: 22px;
  box-shadow: 0 16px 30px rgba(173, 120, 77, 0.11);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 6px;
  z-index: 2;
  backdrop-filter: blur(18px);
  flex: 0 0 auto;
}

.nav-item {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 8px 4px 7px;
  border-radius: 16px;
  color: var(--text-faint);
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.nav-item svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item span {
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-item.is-active {
  background: rgba(255, 145, 102, 0.12);
  color: var(--brand-main);
}

.page-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

@media (min-width: 768px) {
  .app-frame {
    padding: 10px;
  }

  .app-shell {
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(153, 110, 73, 0.12);
  }

  .app-screen {
    padding: calc(12px + var(--safe-top)) 12px calc(12px + var(--safe-bottom));
    gap: 12px;
  }
}
