/* App topbar back (with main style.css) */
.topbar-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  margin-right: 2px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: var(--gray-50);
  color: var(--navy-dark);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}
.topbar-back:hover {
  background: #fff;
  border-color: var(--gold);
  color: var(--navy);
}
.topbar-back i {
  font-size: 0.82rem;
  opacity: 0.9;
}
.topbar-back .topbar-back-text {
  letter-spacing: 0.02em;
}

@media (max-width: 420px) {
  .topbar-back .topbar-back-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .topbar-back {
    padding: 8px 10px;
  }
}

/* Standalone pages (login, signup, etc.) */
.standalone-back {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 10000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(201, 162, 39, 0.45);
  background: rgba(30, 45, 84, 0.94);
  color: #fff;
  font-family: 'Barlow', system-ui, sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.standalone-back:hover {
  background: rgba(45, 62, 110, 0.98);
  border-color: #e8c347;
  transform: translateY(-1px);
}
.standalone-back i {
  font-size: 0.88rem;
  color: #e8c347;
}

/* Public item_view topbar (inline with brand) */
.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.public-topbar-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(201, 162, 39, 0.45);
  background: rgba(255, 255, 255, 0.08);
  color: #e8c347;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}
.public-topbar-back:hover {
  background: rgba(201, 162, 39, 0.15);
  border-color: #e8c347;
  color: #fff;
}
.public-topbar-back i {
  font-size: 0.8rem;
}

/* Landing / storefront nav */
.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.nav-back:hover {
  border-color: rgba(201, 162, 39, 0.55);
  color: #e8c347;
  background: rgba(201, 162, 39, 0.1);
}
.nav-back i {
  font-size: 0.8rem;
  color: #e8c347;
}
