/* addusr.css - custom styles for favorites, tool badges, tutorial button */

/* ===== My Favorites: Add button ===== */
.user-add-btn {
  vertical-align: middle;
}

/* ===== My Favorites: emoji logo ===== */
.user-site-card .user-emoji {
  font-size: 22px;
  line-height: 1;
}

/* ===== My Favorites: delete button ===== */
.user-site-card {
  position: relative;
}

.user-site-card .user-delete {
  position: absolute;
  top: 6px;
  left: 6px;
  right: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(224, 90, 90, 0.12);
  color: #e05a5a;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 10;
}

.user-site-card:hover .user-delete {
  opacity: 1;
}

.user-site-card .user-delete:hover {
  background: rgba(224, 90, 90, 0.28);
}

/* ===== Emoji picker ===== */
.emoji-picker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.emoji-opt {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(0,0,0,0.02);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  user-select: none;
}

.emoji-opt.selected {
  border-color: rgba(0, 123, 255, 0.55);
  background: rgba(0, 123, 255, 0.08);
}

/* ===== Toast ===== */
.user-toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: rgba(0,0,0,0.78);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 12px;
  z-index: 2000;
  transition: transform 0.25s ease;
  pointer-events: none;
  white-space: nowrap;
}

.user-toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ===== Tool card: attribute badges (inline with title) ===== */
.tool-badges {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  vertical-align: middle;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.tool-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  font-size: 11px;
  cursor: default;
  flex-shrink: 0;
}

.tool-badge-vpn {
  background: rgba(255,149,0,0.12);
  color: #e07b00;
  border: 1px solid rgba(255,149,0,0.3);
}

.tool-badge-paid {
  background: rgba(220,53,69,0.10);
  color: #c82333;
  border: 1px solid rgba(220,53,69,0.25);
}

.tool-badge-freemium {
  background: rgba(40,167,69,0.10);
  color: #1e7e34;
  border: 1px solid rgba(40,167,69,0.25);
}

.tool-badge-signup {
  background: rgba(0,123,255,0.10);
  color: #0062cc;
  border: 1px solid rgba(0,123,255,0.25);
}

/* ===== Tool card: favorite button (top-left) ===== */
.url-body {
  position: relative;
}

.tool-fav-btn {
  position: absolute;
  top: 6px;
  left: 6px;
  bottom: auto;
  right: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(255,193,7,0.12);
  color: #c8a000;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  padding: 0;
}

.url-body:hover .tool-fav-btn,
.tool-fav-btn.faved {
  opacity: 1;
}

.tool-fav-btn.faved {
  color: #f5a623;
  background: rgba(245,166,35,0.18);
}

.tool-fav-btn:hover {
  background: rgba(245,166,35,0.28);
  color: #e09000;
}

/* ===== Tutorial goto button ===== */
.togo-tutorial {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.togo-tutorial .togo-arrow {
  font-size: 14px;
  line-height: 1;
}

.togo-tutorial .togo-label {
  font-size: 9px;
  line-height: 1;
  opacity: 0.6;
  white-space: nowrap;
}

/* ===== Nav login (SMS) ===== */
.nav-login-trigger {
  white-space: nowrap;
  padding: 4px 6px;
  border-radius: 4px;
}
.nav-login-trigger:hover {
  color: #f1404b !important;
  text-decoration: none;
}
