:root {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: #05050a;
  color: #fff;
}

body, html, #app {
  margin: 0;
  padding: 0;
  height: 100%;
}

.nb-header {
  padding: 16px;
}

.nb-title {
  font-size: 22px;
  font-weight: 700;
}

.nb-subtitle {
  font-size: 13px;
  opacity: 0.8;
  margin-top: 4px;
}

.nb-balance {
  margin-top: 10px;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  display: inline-block;
}

.nb-section {
  padding: 0 16px 80px;
}

.nb-section h2 {
  font-size: 16px;
  margin-bottom: 10px;
}

.nb-empty {
  font-size: 14px;
  opacity: 0.7;
}

.trend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.trend-card {
  background: #111;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.trend-card:active {
  transform: scale(0.96);
}

.trend-thumb {
  position: relative;
  width: 100%;
  height: 130px;
  background: #222;
}

.trend-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trend-thumb-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ffb347, #ff5f6d);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 36px;
}

.trend-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  background: rgba(0, 0, 0, 0.6);
}

.trend-info {
  padding: 10px;
}

.trend-title {
  font-size: 14px;
  font-weight: 600;
}

.trend-desc {
  font-size: 11px;
  opacity: 0.75;
  margin-top: 2px;
}

/* ===== НИЖНЕЕ МЕНЮ ===== */

.nb-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 58px;
  background: rgba(10, 10, 20, 0.98);
  border-top: 1px solid rgba(255,255,255,0.05);

  display: flex;
  justify-content: space-around;
  align-items: center;

  backdrop-filter: blur(8px);
}

.nb-nav button {
  flex: 1;
  height: 100%;
  background: none;
  border: none;
  color: #777;
  font-size: 12px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.nb-nav button span {
  font-size: 10px;
}

.nb-nav button.active {
  color: #ffd54a;
}
