.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-overlay.show {
  display: flex;
}

.modal-card {
  background: var(--surface, #fff);
  border-radius: 12px;
  width: 90%;
  max-width: 480px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.auth-modal-tabs {
  display: flex;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 12px 12px 0;
  gap: 8px;
}

.auth-tab-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  color: var(--muted, #6b7280);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.auth-tab-btn.active {
  color: var(--accent, #5558e6);
  border-bottom-color: var(--accent, #5558e6);
}

.auth-tab-close {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--muted, #6b7280);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.auth-tab-close:hover {
  color: var(--text, #1e293b);
}

.tab-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  background: var(--red, #e5304e);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
  line-height: 1;
}

#social-tab-content {
  padding: 12px;
  max-height: 320px;
  overflow-y: auto;
}

.fr-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px;
  margin-bottom: 6px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 6px;
  transition: background 0.2s;
}

.fr-row:hover {
  background: rgba(0, 0, 0, 0.04);
}

.fr-info {
  flex: 1;
  min-width: 0;
}

.fr-name {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 2px;
}

.fr-sub {
  font-size: 11px;
  color: var(--muted);
}

.fr-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.section-label {
  font-weight: 700;
  font-size: 13px;
  margin-top: 12px;
  margin-bottom: 8px;
  padding-left: 4px;
  color: var(--text);
}

.section-label:first-child {
  margin-top: 0;
}

.empty-state {
  padding: 32px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.social-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  margin-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 12px;
}

.social-pagination button {
  padding: 4px 8px;
  font-size: 11px;
}

.social-pagination span {
  color: var(--muted);
}

.tiny-btn {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  background: var(--accent, #5558e6);
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.tiny-btn:hover {
  background: var(--accent2, #6366f1);
  transform: translateY(-1px);
}

.tiny-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.tiny-btn.danger {
  background: var(--red, #e5304e);
}

.tiny-btn.danger:hover {
  background: #d02847;
}
